Archlinux pacman

From gr0x0rd
Revision as of 22:24, 6 May 2022 by Gr0x0rd (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 [1]<prefix>/<package>/<version>