sudo apt updateRun before installs or upgrades so package metadata is current.
Comprehensive Linux package management reference for apt, dnf, yum, pacman, zypper, rpm, and dpkg workflows across common distributions.
Manage packages on Debian, Ubuntu, and apt-based systems.
sudo apt updateRun before installs or upgrades so package metadata is current.
sudo apt upgradeUse `full-upgrade` when dependency changes are expected.
sudo apt full-upgradeUseful before major maintenance windows or distro transitions.
sudo apt install nginx curl jqAPT resolves dependencies automatically.
sudo apt remove nginxUse `purge` to remove config files too.
sudo apt purge nginxUseful when resetting a package to a clean state.
apt search postgresqlHelpful when you know the capability but not the exact package name.
apt show nginxUseful for version, dependencies, and package description.
apt list --upgradableGood for change planning and patch windows.
dpkg -S /usr/bin/psqlVery useful when auditing system files.
dpkg -l | lessClassic package inventory on Debian-family systems.
Manage packages on Fedora, Rocky, AlmaLinux, CentOS Stream, and older yum systems.
sudo dnf check-updateA safe way to inspect available package updates before applying them.
sudo dnf upgradeCommon patching command on modern RHEL-family systems.
sudo dnf install nginx jqDNF replaced yum on newer Fedora/RHEL-family systems.
sudo dnf remove nginxUseful for package cleanup and rollback.
dnf search postgresUseful when exploring available packages in enabled repos.
dnf info nginxGood for version checks and repository details.
sudo dnf groupinstall 'Development Tools'Useful for compilers, build tools, or server roles.
sudo yum install nginxStill relevant on older enterprise environments.
rpm -qi openssh-serverUseful even when yum or dnf is unavailable.
rpm -qf /usr/sbin/sshdUseful for auditing binaries and config origins.
Manage packages on Arch-based and SUSE-based systems.
sudo pacman -SyOften paired with `-u` for a full system update.
sudo pacman -SyuThe standard full-update command on Arch-based systems.
sudo pacman -S nginx jqArch package installation command.
sudo pacman -Rns nginx`-Rns` also removes unneeded dependencies and config backups where possible.
pacman -Ss dockerUseful when discovering package names.
sudo zypper refreshRun before install or patch operations.
sudo zypper updateThe standard package update workflow on zypper systems.
sudo zypper install nginx jqPackage installation workflow on openSUSE/SLES.
sudo zypper remove nginxUseful for cleanup or rollback.