- 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-getis 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 updateupdates the list of available packages.apt-get upgradeupgrades all installed packages.apt-get install <package>installs a package.apt-get remove <package>removes a package.dpkgis a command-line tool that allows you to install, update, upgrade, and remove packages.- Documentation - apt-get
- Documentation - dpkg
- Article - Debian Package Management
dnfis the most common package manager on Red Hat-based distros.dnfis a fork ofyum, and it is the default package manager on Fedora. It uses the same syntax asyum.yumis a command-line tool that enables you to manage packages on Red Hat-based distrosdnf/yum updateupdates and upgrades all installed packages.dnf/yum install <package>installs a package.dnf/yum remove <package>removes a package.rpmis 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.pacmanis the default package manager on Arch Linux distros.yay/pacman -Syuupdates 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 madeemergeis the default package manager on Gentoo. It is a command-line tool that enables you to download, compile, and install packages from source.emerge --syncupdates the list of available packages.emerge --update --deep --newuse @worldupdates and upgrades all installed packages.emerge <package>installs a package.emerge --unmerge <package>removes a package.- Documentation - emerge