A comprehensive developer cheatsheet covering Linux package management systems across major distributions, featuring essential CLI commands, common flags, and operational workflows for installing, updating, querying, and removing software using apt (Debian/Ubuntu), dnf/yum (RHEL/Fedora), pacman (Arch Linux), zypper (openSUSE), and universal formats like snap and flatpak.
Understanding Package Managers
What is a Package Manager?
A package manager is a tool that automates the installation, upgrade, configuration, and removal of software packages on a Linux system.
Package Management Families
Family
Distributions
Package Format
Tools
Debian
Ubuntu, Debian, Linux Mint
.deb
apt, apt-get, dpkg
Red Hat
RHEL, CentOS, Fedora, Rocky Linux
.rpm
dnf, yum, rpm
Arch
Arch Linux, Manjaro, EndeavourOS
.pkg.tar.xz
pacman, yay (AUR)
SUSE
openSUSE, SLES
.rpm
zypper, rpm
Universal
All distros
Snap, Flatpak, AppImage
snap, flatpak
Package Manager Terminology
Term
Meaning
Repository (Repo)
A server containing packages
Dependency
Other packages required for installation
Update
Refresh package lists from repositories
Upgrade
Install newer versions of installed packages
Remove
Uninstall a package
Purge
Remove package AND configuration files
The rest of this sheet is locked4 Pro sheets unlock together, across every toolEveryPro sheet, every toolLifetimeone payment, no renewalNewsheets included as they shipOne-time payment · lifetime access
Linux cheat sheet: Package Managers | InfraThrone DevOps Park