1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/pacman.md
K.B.Dharun Krishna 4ab42b61ff
pacman: reference other pacman pages (#10120)
* pacman: reference other pacman pages

* Update pages.fr/linux/pacman.md
2023-05-16 16:00:45 +05:30

977 B

pacman

Arch Linux package manager utility. See also: pacman-database, pacman-deptest, pacman-files, pacman-key, pacman-mirrors, pacman-query, pacman-remove, pacman-sync, pacman-upgrade. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://man.archlinux.org/man/pacman.8.

  • Synchronize and update all packages:

sudo pacman -Syu

  • Install a new package:

sudo pacman -S {{package_name}}

  • Remove a package and its dependencies:

sudo pacman -Rs {{package_name}}

  • Search the package database for a regular expression or keyword:

pacman -Ss "{{search_pattern}}"

  • List installed packages and versions:

pacman -Q

  • List only the explicitly installed packages and versions:

pacman -Qe

  • List orphan packages (installed as dependencies but not actually required by any package):

pacman -Qtdq

  • Empty the entire pacman cache:

sudo pacman -Scc