tldr/pages/linux/pacman.md
Agniva De Sarker 37ff096332
pacman: update install instructions
Adding the `-u` flaf to install according to best practices

https://github.com/tldr-pages/tldr/pull/1562
2017-10-30 09:54:50 +05:30

680 B

pacman

Arch Linux package manager utility.

  • Synchronize and update all packages:

pacman -Syu

  • Install a given package and update all other packages to their latest versions according to the local database:

pacman -Su {{package_name}}

  • Remove a package and its dependencies:

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

  • Find which package owns a certain file:

pacman -Qo {{filename}}

  • Empty package cache to free up space:

pacman -Scc