snippetbashTip
pacman — Arch Linux package manager utility. See also: `pacman-sync`, `pacman-remove`, `pacman-query`, `pacma
Viewed 0 times
commandcliarchlinuxpackagepacmanmanagerutility
linux
Problem
How to use the
pacman command: Arch Linux package manager utility. See also: pacman-sync, pacman-remove, pacman-query, pacman-upgrade, pacman-files, pacman-database, pacman-deptest, pacman-key, pacman-mirrors. For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>. More information: <https://manned.org/pacman.8>.Solution
pacman — Arch Linux package manager utility. See also: pacman-sync, pacman-remove, pacman-query, pacman-upgrade, pacman-files, pacman-database, pacman-deptest, pacman-key, pacman-mirrors. For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>. More information: <https://manned.org/pacman.8>.[S]ynchronize and update all packages:
sudo pacman -SyuInstall a new package:
sudo pacman -S {{package}}[R]emove a package and its dependencies:
sudo pacman -Rs {{package}}Search ([s]) the package database for a
regex or keyword:pacman -Ss "{{search_pattern}}"Search the database for packages containing a specific [F]ile:
pacman -F "{{file_name}}"List only the [e]xplicitly installed packages and versions:
pacman -QeList orphan packages (installed as [d]ependencies but not actually required by any package):
pacman -QtdqEmpty the entire
pacman cache:sudo pacman -SccCode Snippets
[S]ynchronize and update all packages
sudo pacman -SyuInstall a new package
sudo pacman -S {{package}}[R]emove a package and its dependencies
sudo pacman -Rs {{package}}Search ([s]) the package database for a `regex` or keyword
pacman -Ss "{{search_pattern}}"Search the database for packages containing a specific [F]ile
pacman -F "{{file_name}}"Context
tldr-pages: linux/pacman
Revisions (0)
No revisions yet.