Package Management
This site is a reference for common package managers.
Packages are software applications that resides in archives. A package manager is a tool that automates the process of installing, updating, upgrading and removing packages.
For the full experience we recommend viewing this website on a desktop or tablet.
OpSec OSINT Git Python Bash Linux CLI Package Management Regular Expressions Nano Vim HTML5 Markdown Bootstrap 4 JQuery Flask ASCII IP HTTP Port Numbers Save App
See Similar
Select a Category
View all Cheatsheets General Purpose (1) Domain Specific (1) Imperative (1) Object-Oriented (1) Web Development (3) DevOps (1) Control Versioning System (1) System Administration (2) Scripting Language (1) Compiled Language (1) Markup Language (2) Command Language (1) Framework (2) Frontend (1) Backend (6) Software Library (3) Tool (2) Standard (1) Text Editor (3) Text Processing (4)
Package Management Categories
Use the compass to jump to a specific section of the selected cheatsheet
Common Package Management Operations
Commands for Common Package Management across Distributions
Intended Action | RPM (Redhat, SUSE, Mandriva) | Aptitude (Debian and derivatives) | Pacman (Arch) | Emerge (Gentoo) |
---|---|---|---|---|
Installing a package | rpm -i <package file> | aptitude install <package> | pacman -S <package> | emerge <package> |
Uninstalling a package | rpm -e <package> | aptitude remove <package> | pacman -R <package> | emerge --depclean <package> |
Searching for a package | N/A | aptitude search <string> | pacman -S -s <string> | emerge -s <string> |
Listing installed packages | rpm -qa | dpkg -l -a | pacman -Q -s '.*' | equery list \* |
Listing files in package | rpm -ql <package> | dpkg -L <package> | pacman -Q -l <package> | equery files <package> |
Finding package containing file | rpm -qf <file> | dpkg -S <file> | pacman -Q -o <file> | equery belongs <file> |
Showing package description | rpm -qi <package> | aptitude show <package> | pacman -S -i <package> | emerge -s <package> |
Common Package Management Operations: See original work here.