Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Learn the essential Arch Linux Pacman commands for installing, updating, searching, removing and managing packages, repositories, dependencies, package files, cache, databases and system maintenance.
Pacman is the core package-management utility used by Arch Linux. This guide covers the commands you need for everyday package installation, system upgrades, package removal, searching, troubleshooting, cache management and package database maintenance.
Use pacman -S to install packages from
configured repositories.
Use pacman -Syu for a complete system
upgrade.
Use -Q, -Ss, -Qi
and related operations to inspect packages.
Manage package caches, files, dependencies and the local package database safely.
pacman -Sy by itself and then
install packages against a partially refreshed system.
For a normal full system update, use
sudo pacman -Syu.
Pacman is the package management utility used by Arch Linux. It tracks installed packages, resolves dependencies, installs and removes software, synchronizes package databases and upgrades installed packages.
Pacman uses a command-line interface with an operation, optional flags and one or more targets. Its basic syntax is:
The current Arch manual describes Pacman as a package management utility with support for dependencies, package groups, installation/removal scripts and synchronization with remote repositories.
| Part | Example | Purpose |
|---|---|---|
| Command |
pacman
|
Starts the Arch Linux package manager. |
| Operation |
-S
|
Synchronizes with repositories and performs package installation. |
| Option |
-y
|
Refreshes package databases. |
| Option |
-u
|
Upgrades out-of-date packages. |
| Target |
firefox
|
Package or other target being operated on. |
The -S or --sync operation
installs packages from configured Arch Linux
repositories and resolves their required dependencies.
Example:
The --needed option prevents already
up-to-date targets from being reinstalled.
If a repository group is selected, Pacman can present the group members and allow you to choose which packages to install.
The most important Pacman command for normal Arch Linux maintenance is:
This refreshes the configured repository databases and
performs a full system upgrade. The official Pacman
manual gives pacman -Syu as the standard
full-upgrade example.
Arch Linux does not support partial upgrades. Avoid
updating repository databases with -Sy
and then installing or upgrading individual packages
against a different package state.
For routine maintenance, use:
Arch Linux occasionally publishes news items that contain manual intervention instructions for significant package transitions. Checking Arch News before a major update is a useful administration practice.
Example:
The -Ss operation searches package names
and descriptions in the synchronized repository databases.
This searches packages installed on your local system.
You can specify a repository when needed, for example:
The -R operation removes packages. Options
such as -n and -s can modify how
configuration files and dependencies are handled. Review
Pacman’s transaction proposal before confirming removal.
pacman -Qi package-name
pacman -Si package-name
pacman -Ql package-name
pacman -Qc package-name
The -Qo operation can identify the installed
package that owns a particular file.
This is particularly useful when troubleshooting a command or binary and determining which package provided it.
Pacman also has a file-database operation using
-F. Refresh the file databases first:
Then search for a file:
The -U operation installs or upgrades
packages from a local package file or supported URL.
For example:
Pacman resolves required dependencies from configured repositories when possible.
The -w option downloads package files without
installing or upgrading them.
This can be useful when you want to inspect or preserve package files before performing an installation.
Pacman stores downloaded package files in its package cache, normally under:
A single -c removes cached packages that
are no longer installed and can also remove unused
synchronized databases.
Pacman can identify packages installed as dependencies that are no longer required by another installed package.
Do not blindly remove packages from an orphan list. Review the transaction and make sure a package is not intentionally retained for a particular workflow.
Pacman includes database-checking functionality that can help detect inconsistencies in the local package database.
The current Pacman manual documents
-Dk for package-database consistency and
-Qk/-Qkk for checking files
belonging to installed packages.
Foreign packages are packages not found in the configured synchronized repositories. This can include packages installed manually or from the AUR.
Pacman can display group members and allow package selection when a repository group is installed.
Pacman’s primary configuration file is:
This configuration controls repository definitions, options and other package-manager behavior.
You can inspect the resolved Pacman configuration using
pacman-conf:
To list configured repositories:
The current Arch manual documents
pacman-conf as the utility for querying the
resolved Pacman configuration.
Pacman downloads packages from repositories configured through the Arch Linux mirror configuration. The mirror list is normally stored at:
Mirror quality matters because a slow or outdated mirror can affect package downloads and synchronization.
If you are optimizing your Arch Linux installation, read VMoreCloud’s dedicated guide:
How to Find the Fastest and Most Up-to-Date Arch Linux Mirrors
You can also learn how to install and configure Reflector on Arch Linux for automated mirror-list generation.
A practical Arch Linux maintenance workflow is to keep the mirror configuration healthy and then perform a complete system upgrade.
The exact Reflector parameters should be chosen according to your location, mirror freshness and network conditions. Speed alone should not be treated as the only mirror selection criterion.
Pacman primarily manages packages from the repositories configured in your Arch Linux system. The Arch User Repository (AUR) is a separate community-maintained collection of PKGBUILDs.
| Feature | Pacman | AUR |
|---|---|---|
| Main purpose | Manage repository packages | Community package build recipes |
| Package format | Prebuilt Arch packages | Usually built locally from PKGBUILD |
| Direct Pacman operation | Yes | No |
| Trust model | Official repository infrastructure | Community-contributed build recipes |
Before using an AUR package, inspect its PKGBUILD and understand what it will build and install.
VMoreCloud also covers new Arch package-management tooling in:
| Command | Purpose |
|---|---|
sudo pacman -Syu |
Refresh databases and perform a full system upgrade. |
sudo pacman -S package |
Install a package from configured repositories. |
sudo pacman -S --needed package |
Install a package without unnecessarily reinstalling an up-to-date target. |
pacman -Ss keyword |
Search synchronized repositories. |
pacman -Qs keyword |
Search installed packages. |
pacman -Qi package |
Show information about an installed package. |
pacman -Si package |
Show information about a repository package. |
pacman -Ql package |
List files installed by a package. |
pacman -Qo /path/file |
Find which installed package owns a file. |
sudo pacman -R package |
Remove a package. |
sudo pacman -Rns package |
Remove a package and unneeded dependencies. |
pacman -Qdt |
List orphaned dependency packages. |
pacman -Qe |
List explicitly installed packages. |
pacman -Qm |
List foreign packages. |
sudo pacman -Sc |
Clean unused packages from the cache. |
sudo pacman -Scc |
Remove all cached packages. |
sudo pacman -U package.pkg.tar.zst |
Install or upgrade from a local package file. |
sudo pacman -Sw package |
Download a package without installing it. |
sudo pacman -Dk |
Check package database consistency. |
pacman -Qkk |
Perform detailed checks of installed package files. |
First check network connectivity and your configured mirrors.
If mirror performance or freshness is the problem, review the VMoreCloud Arch Linux mirror optimization guide .
For a normal full system update, use:
A file conflict should be investigated rather than
immediately bypassed with --overwrite.
Determine which package owns the conflicting file and
why the conflict occurred.
If Pacman reports that the database is locked, first confirm that another Pacman process is not currently running.
Verify your mirror configuration, network connection and package databases. Avoid random deletion of package database files as a first troubleshooting step.
Arch Linux package authentication depends on its package signing infrastructure. Treat signature failures as a security or configuration problem rather than simply disabling signature verification.
sudo pacman -Syu for normal full
system upgrades.
Pacman is not only an everyday package-management tool. It is also fundamental to the Arch Linux installation and post-installation workflow.
If you are new to Arch Linux, start with VMoreCloud’s pillar guide:
How to Install Arch Linux: Complete Step-by-Step Guide
That guide covers UEFI installation, disk partitioning,
pacstrap, networking, users, bootloader
configuration and essential post-installation tasks.
It then connects naturally to this Pacman command guide.
Arch Linux’s rolling-release model means that installed systems receive package updates continuously instead of requiring traditional major-version upgrades.
VMoreCloud recently covered the Arch Linux September 2026 ISO , which includes refreshed installation packages.
Existing Arch Linux installations normally do not need that new ISO. Instead, their installed packages can be brought current through the normal full system upgrade:
For routine system maintenance, the most important
command is sudo pacman -Syu, which
refreshes repository databases and performs a full
system upgrade.
Use
sudo pacman -S package-name.
Replace package-name with the package
you want to install.
Use pacman -Ss search-term to search
synchronized repository databases.
Use pacman -Qs search-term to search
packages installed on the local system.
Use sudo pacman -R package-name.
For a removal that also considers unneeded
dependencies, sudo pacman -Rns package-name
can be used after reviewing the transaction.
Use sudo pacman -Sc to remove cached
packages that are no longer installed. Use
sudo pacman -Scc to remove all cached
packages, but understand that this also removes
useful local package copies.
It refreshes synchronized package databases and upgrades the installed system. It is the standard full-system upgrade command.
-S synchronizes with configured
repositories and installs repository packages.
-U installs or upgrades from a local
package file or supported URL.
No. Pacman is the Arch Linux package manager.
The AUR is a separate community-maintained collection
of package build recipes. AUR packages are commonly
built with tools such as makepkg or
AUR helpers.
Do not use pacman -Sy as a routine
partial-upgrade workflow. For normal system
maintenance, use sudo pacman -Syu.
Use pacman -Qo /path/to/file for files
installed on the local system.
Use sudo pacman -Dk to check the local
package database and pacman -Qk or
pacman -Qkk to check files associated
with installed packages.
Pacman is one of the defining tools of the Arch Linux
ecosystem. Once you understand its operations, package
management becomes predictable: -S handles
repository installation, -Syu performs
full upgrades, -R handles removal,
-Q queries installed packages,
-F searches package file databases and
-U handles local package files.
The most important principle is to maintain Arch Linux as a complete rolling system rather than performing unsupported partial upgrades. Keep mirrors reliable, review important Arch News announcements, inspect transactions before confirming them and maintain backups before major system changes.
For the VMoreCloud Arch Linux content cluster, this Pacman guide connects the installation pillar with mirror management, Reflector, AUR tooling and current Arch Linux release information.
Start with the complete Arch Linux installation guide, optimize your mirrors with Reflector, then return to this Pacman reference as your everyday package-management cheat sheet.
Start the Arch Linux Installation GuideWe have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.