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

39 lines
1,012 B
Markdown
Raw Normal View History

2014-01-29 21:45:28 -07:00
# 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>.
2014-01-29 21:45:28 -07:00
- [S]ynchronize and update all packages:
2022-08-10 14:13:57 +02:00
`sudo pacman -Syu`
2014-01-29 21:45:28 -07:00
- Install a new package:
2014-01-29 21:45:28 -07:00
`sudo pacman -S {{package}}`
2014-01-29 21:45:28 -07:00
- [R]emove a package and its dependencies:
`sudo pacman -Rs {{package}}`
2014-01-29 21:45:28 -07:00
- Search ([s]) the package database for a regular expression or keyword:
2014-01-29 21:45:28 -07:00
`pacman -Ss "{{search_pattern}}"`
2014-01-29 21:45:28 -07:00
- Search the database for packages containing a specific [F]ile:
2014-01-29 21:45:28 -07:00
`pacman -F "{{file_name}}"`
- List only the [e]xplicitly installed packages and versions:
2022-08-10 14:13:57 +02:00
`pacman -Qe`
2016-01-05 10:19:53 +08:00
- List orphan packages (installed as [d]ependencies but not actually required by any package):
2016-01-05 10:19:53 +08:00
2022-08-10 14:13:57 +02:00
`pacman -Qtdq`
2016-01-05 10:19:53 +08:00
- Empty the entire `pacman` cache:
2016-01-05 10:19:53 +08:00
2022-08-10 14:13:57 +02:00
`sudo pacman -Scc`