PACMAN

Pacman is a simple library-based package manager which manages software packages on Arch-based linux distributions

Install a package or group

pacman -S PACKAGE | PACKAGE_GROUP

Install a local package

pacman -U PACKAGE

Uninstall a package

pacman -R PACKAGE

Uninstall a package and its dependencies

pacman -Rs PACKAGE

Pacman queries the local package database with the -Q flag, the sync database with the -S flag and the files database with the -F flag. -s is the builtin ERE flag.

List installed packages

pacman -Q

Search for a package

pacman -Ss PACKAGE

Search for already installed packages

pacman -Qs PACKAGE

Provide information about a package

pacman -Si PACKAGE

Remove all files from cache

pacman -Scc

Synchronize the repository databases and update the system's packages (excluding local packages)

pacman -Syu

Configuration file

Pacman's settings are located in /etc/pacman.conf: this is the place where the user configures the program to work in the desired manner.

Pacman will attempt to read pacman.conf each time it is invoked. This configuration file is divided into sections or repositories. Each section defines a package repository that pacman can use when searching for packages in --sync mode. The exception to this is the [options] section, which defines global options.

Comments are only supported by beginning a line with the hash (#) symbol. Comments cannot begin in the middle of a line.