Pacman cheat sheet (Arch Linux)

This is a list of commonly used commands for pacman package manager in Arch Linux distro.

Show help

# pacman -Sh

Install a package:

# pacman -S screen

Search for packages:

# pacman -Ss emacs
extra/emacs 25.1-1
The extensible, customizable, self-documenting real-time display editor
extra/texmacs 1.99.5-2
Free scientific text editor, inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one.
community/auctex 11.89-3
An extensible package for writing and formatting TeX files in Emacs
community/bbdb 3.1.2-4
A rolodex-like database for Emacs

Show packages of group xorg:

# pacman -Sg xorg

Remove packages

Remove only a package:

# pacman -R lsof

Remove a package and its dependencies not used by other packages:

# pacman -Rs lsof

Upgrade all packages on the system:

# pacman -Syu

Show extensive info about a package:

# pacman -Si vim

List files installed by screen package:

# pacman -Ql screen

Clean package cache:

# pacman -Sc


Quick guide for users of other distros: Pacman Rosetta

System maintenance:

List of interesting applications: