Package / system tool

pacman — Arch family

pacman is used for package management or system administration in the Arch family. Consult the distribution manual for release-specific behaviour.

Availability: Arch Linux; read package and AUR security guidance before installing software.中文

Syntax

pacman [options] [package]

Examples

pacman is used for package management or system administration in the Arch family. Consult the distribution manual for release-specific behaviour.

sudo pacman -Syu

Show command help and options where supported.

pacman --help

Parameters, options and clauses

Option / clauseDescription
-S <package>Synchronize and install a package.
-SyuRefresh package databases and perform a full system upgrade.
-R <package>Remove a package; review dependency handling first.
-Q / -Qe / -QmQuery installed, explicitly installed or foreign packages.
-Ss <term>Search synchronized repositories.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory