Cheat Sheet Library

dnf / pacman / zypper Cheat Sheet

Package managers for the other big Linux families: dnf (Fedora, RHEL, Rocky, Alma), pacman (Arch, Manjaro, EndeavourOS), zypper (openSUSE). All need sudo for changes. For Debian/Ubuntu see the apt sheet.

  • 31 entries
  • 5 sections
  • Updated
  • Click a command to see all its options

31 entries

On this page

Side by Side #

Taskdnfpacmanzypper
Refresh repos (only together with -u) (ref)
Update everything (up)
Distro upgrade / rolling (Tumbleweed)
Install (in)
Install local file
Remove ()
Remove + unused deps + config then
Package info (repo) / -Qi (installed)
List installed
Explicitly installed—
Files in a package
Who owns a file
Remove orphans
Clean cache (cc)
List repos (lr)
Add a repoedit /etc/pacman.conf (ar)
History / undo / /var/log/pacman.log/var/log/zypp/history

dnf Extras #

CommandAction
Package groups
Install a group
Go back one version
Enable RPM Fusion (codecs, drivers) on Fedora

pacman / Arch Extras #

CommandAction
/ Install from the AUR (community helpers)
Update repo + AUR packages
List orphans
Fix key errors

Avoid pacman -Sy pkg on its own (a partial upgrade can break the system). Use pacman -Syu pkg.

zypper Extras #

CommandAction
/ List / apply security patches (Leap)
/ Lock / unlock a package
Install from OBS community repos (with the tool)

Universal Formats #

CommandAction
Flatpak (works on every distro)
Snap