1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 18:15:50 +02:00
tldr/pages/linux/pacman.md
Managor ba6daef39d
*: standardize regex usage (#17328)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-07-25 08:50:06 +03:00

38 lines
1,001 B
Markdown

# 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 -Syu`
- Install 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 -Qe`
- List orphan packages (installed as [d]ependencies but not actually required by any package):
`pacman -Qtdq`
- Empty the entire `pacman` cache:
`sudo pacman -Scc`