1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 07:06:00 +02:00
tldr/pages/linux/pacman.md
cyqsimon 2d4f0ad33d
linux package managers: add link to ArchWiki Rosetta (#9507)
Affected pages: apt, dnf, dpkg, emerge, pacman, rpm, yum, zypper
2022-12-05 10:57:55 +10:00

38 lines
890 B
Markdown

# pacman
> Arch Linux package manager utility.
> Some subcommands such as `pacman sync` have their own usage documentation.
> 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`