LinuxCommandLibrary

pacman-sync

Arch Linux package manager utility.

TLDR

Install a new package

$ sudo pacman --sync [package]
copy


Synchronize and update all packages (add --downloadonly to download the packages and not update them)
$ sudo pacman --sync --refresh --sysupgrade
copy


Update all packages and install a new one without prompting
$ sudo pacman --sync --refresh --sysupgrade --noconfirm [package]
copy


Search the package database for a regular expression or keyword
$ pacman --sync --search "[search_pattern]"
copy


Display information about a package
$ pacman --sync --info [package]
copy


Overwrite conflicting files during a package update
$ sudo pacman --sync --refresh --sysupgrade --overwrite [path/to/file]
copy


Synchronize and update all packages, but ignore a specific package (can be used more than once)
$ sudo pacman --sync --refresh --sysupgrade --ignore [package]
copy


Remove not installed packages and unused repositories from the cache (use two --clean flags to clean all packages)
$ sudo pacman --sync --clean
copy

Copied to clipboard