Archlinux pacman

From gr0x0rd
Revision as of 22:25, 6 May 2022 by Gr0x0rd (talk | contribs)
Jump to navigation Jump to search

There is an extensive set of documentation for pacman. This covers a few brief but important things.

Installing a package

$ sudo pacman -S <package>

Removing a package

$ sudo pacman -R <package>

Updating the system

$ sudo pacman -Syu

Installing a specific package version

If you have previously installed it

$ sudo pacman -U file:///var/cache/pacman/pkg/package-old_version.pkg.tar.type

To source it from the archives

$ sudo pacman -U | https://archive.archlinux.org/packages/<prefix>/<package>/<version>