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
Managor 749cb60d79
pacman: adjust subcommands to match usage frequency order (#14004)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-10-11 22:19:34 +02:00

38 lines
947 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>.
- Synchronize and update all packages:
`sudo pacman -Syu`
- Install a new package:
`sudo pacman -S {{package}}`
- Remove a package and its dependencies:
`sudo pacman -Rs {{package}}`
- Search the database for packages containing a specific file:
`pacman -F "{{file_name}}"`
- 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`