Package Management
| Distribution | Package Management Commands |
|---|---|
| Debian/Ubuntu | apt, apt-get, dpkg, aptitude |
| RHEL/Fedora/CentOS | dnf, yum, rpm |
| Arch | pacman |
| SUSE | zypper |
| Gentoo | emerge |
| Universal | snap, flatpak |
Debian Based
apt
Usage : apt install package
Example : apt install nginx
Description : Modern package manager for Debian/Ubuntu systems.
Takeaway : Use for installing, updating, searching, and removing packages on Debian-based systems.apt-get
Usage : apt-get update && apt-get upgrade
Example : apt-get install curl
Description : Legacy but still widely used package manager for Debian/Ubuntu.
Takeaway : Use for scripting and backward compatibility with older Debian/Ubuntu systems.dpkg
Usage : dpkg -i package.deb
Example : Install .deb file manually.
Description : Low-level package manager for Debian systems.
Takeaway : Use for troubleshooting or installing local .deb files directly.RPM-based Systems
dnf
Usage : dnf install package
Example : dnf update
Description : Modern package manager for Fedora/RHEL/CentOS.
Takeaway : Use for efficient package management with dependency resolution.yum
Usage : yum install package
Example : yum update
Description : Legacy package manager for RHEL/CentOS.
Takeaway : Use for older RHEL/CentOS systems (replaced by dnf).rpm
Usage : rpm -ivh package.rpm
Example : Install .rpm file manually.
Description : Low-level RPM package manager.
Takeaway : Use for querying, verifying, or installing local RPM packages.Other Distros
pacman
Usage : pacman -S package
Example : pacman -Syu
Description : Package manager for Arch Linux.
Takeaway : Use for fast and simple package management on Arch-based systems.zypper
Usage : zypper install package
Example : zypper update
Description : Package manager for SUSE Linux.
Takeaway : Use for managing packages on SUSE/openSUSE systems.emerge
Usage : emerge package
Example : emerge --update world
Description : Package manager for Gentoo Linux.
Takeaway : Use for source-based package management with customization.Universal Package Managers
snap
Usage : snap install package
Example : snap install vlc
Description : Universal package manager for containerized apps.
Takeaway : Use for cross-distro apps with automatic updates.flatpak
Usage : flatpak install flathub package
Example : flatpak run org.gimp.GIMP
Description : Universal package manager for sandboxed apps.
Takeaway : Use for cross-distro desktop applications with sandboxing.aptitude
Usage : aptitude install package
Example : aptitude search nginx
Description : Text-based interface for APT package management.
Takeaway : Use for interactive package browsing and management on Debian-based systems.
Updated on Dec 23, 2025