- Package management is the process of installing, updating, and removing software packages.
- There are many different package managers, but the most common ones are
apt
,yum
,pacman
, andportage
. - Article - Package Manager
apt-get
is the most common package manager on Debian-based distros. It is a command-line tool that allows you to install, update, upgrade, and remove packages.apt-get update
updates the list of available packages.apt-get upgrade
upgrades all installed packages.apt-get install <package>
installs a package.apt-get remove <package>
removes a package.dpkg
is a command-line tool that allows you to install, update, upgrade, and remove packages.- Documentation - apt-get
- Documentation - dpkg
- Article - Debian Package Management
dnf
is the most common package manager on Red Hat-based distros.dnf
is a fork ofyum
, and it is the default package manager on Fedora. It uses the same syntax asyum
.yum
is a command-line tool that enables you to manage packages on Red Hat-based distrosdnf/yum update
updates and upgrades all installed packages.dnf/yum install <package>
installs a package.dnf/yum remove <package>
removes a package.rpm
is a command-line tool that allows you to install, update, and remove packages.- Documentation - dnf
- Documentation - yum
- Documentation - rpm
yay
(Yet Another Yogurt) is an AUR helper that allows you to install packages from the AUR. It overlays on top ofpacman
.pacman
is the default package manager on Arch Linux distros.yay/pacman -Syu
updates and upgrades all installed packages.yay/pacman -S <package>
installs a package.yay/pacman -R <package>
removes a package.- Documentation - yay
- Documentation - pacman
- I have never used a source-based distro, so I don't know much about them.
- If you have experience with source-based distros, please contribute to this section.
- And correct any mistake I might have made
emerge
is the default package manager on Gentoo. It is a command-line tool that enables you to download, compile, and install packages from source.emerge --sync
updates the list of available packages.emerge --update --deep --newuse @world
updates and upgrades all installed packages.emerge <package>
installs a package.emerge --unmerge <package>
removes a package.- Documentation - emerge