Apt-pacman-crossreference
From FrugalWiki
For who are familiar with the apt package management tool, there is a quick cross-reference.
Operation | apt | pacman |
---|---|---|
pacman -A ( --add ) operations | ||
Install a package from a file | dpkg -i foo.deb | pacman -A foo.fpm |
pacman -Q ( --query ) operations | ||
List all installed packages | dpkg -l | pacman -Q |
List all files owned by a package | dpkg -L foo | pacman -Ql foo |
Search for the package from which a file was installed | dpkg -S /file | pacman -Qo /file |
pacman -R ( --remove ) operations | ||
Remove a package | apt-get remove foo | pacman -Rc foo |
pacman -S ( --sync ) operations | ||
Install a new package | apt-get install foo | pacman -S foo |
Clean the package cache | apt-get clean | pacman -Sc |
Search in the package database | apt-cache search foo | pacman -Ss foo |
Display information for a package | apt-cache show foo | pacman -Si foo |
Update already installed packages to the newest available version | apt-get upgrade | pacman -Su |
Freshen the package database | apt-get update | pacman -Sy |