LinuxShellSite

General Tools

Command/ToolDescription
dpkgBasic tool for package management in Debian-based systems.
rpmPackage manager for RPM packages, used in RHEL, CentOS, and Fedora.
SnapTool for managing Snap packages, across distributions.
flatpakTool for managing Flatpak packages, across distributions.

Ubuntu/Debian (APT)

Command/ToolDescription
apt updateUpdates the package source list.
apt upgradeUpdates all installed packages to the latest versions.
apt installInstalls one or more packages.
apt removeRemoves an installed package.
apt purgeRemoves a package and its configuration files.
apt autoremoveAutomatically removes packages that are no longer needed.
apt searchSearches the package database for a specific package.
APT SHOWDisplays detailed information about a package.
apt-add-repositoryAdds a new repository.

RHEL/CentOS (YUM/DNF)

Command/ToolDescription
Yum Check UpdateChecks for available package updates.
Yum UpdateUpdates all installed packages to the latest versions.
yum installInstalls one or more packages.
yum removeRemoves an installed package.
yum searchSearches the package database for a specific package.
yum infoDisplays detailed information about a package.
yum repolistLists all available repositories.
DNF Check UpdateChecks for available package updates.
DNF UpdateUpdates all installed packages to the latest versions.
dnf installInstalls one or more packages.
DNF RemoveRemoves an installed package.
DNF SearchSearches the package database for a specific package.
DNF InfoDisplays detailed information about a package.
DNF RepolistLists all available repositories.

openSUSE (Zypper)

Command/ToolDescription
zypper refreshUpdates the repository information.
Zypper UpdateUpdates all installed packages to the latest versions.
zypper installInstalls one or more packages.
zypper removeRemoves an installed package.
zypper searchSearches the package database for a specific package.
Zypper InfoDisplays detailed information about a package.
zypper reposLists all configured repositories.

Arch Linux (Pacman)

Command/ToolDescription
pacman -SyuSynchronizes the package database and updates the system.
pacman -SInstalls one or more packages.
pacman -RRemoves an installed package.
pacman -RsRemoves a package and its unused dependencies.
pacman -ssSearches the package database for a specific package.
pacman -SiDisplays detailed information about a package.
pacman -SlLists all packages in a given repository.