Pacman Cheat Sheet
Cheat sheet for Pacman, the Arch Linux package manager.
Cheat sheet with basic commands for Pacman [1], the Arch Linux [2] package manager. Pacman combines a simple binary package format with an easy-to-use build system. The goal of pacman is to make it possible to easily manage packages, whether they are from the official repositories or the user's own builds.
Commands
Update
pacman -Syu
- Update system
pacman -Syy
- Update database
Installing packages
pacman -S package_name
- Install package
package_name
pacman -U /path/to/package_name
- Install package
package_name
makepkg -si package_name
- Install package
package_name
Removing packages
pacman -R package_name
- Remove package
package_name
pacman -Rs package_name
- Remove package
package_name
incl. unneeded dependencies pacman -Rns package_name
- Remove package
package_name
incl. unneeded dependencies and global configuration pacman -Rns $(pacman -Qdtq)
- Remove multiple unneeded packages incl. unused dependencies.
Search & Query
pacman -Qi package_name
- Retrieve
package_name
info