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-remove.md

33 lines
810 B
Markdown

# pacman --remove
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.
- [R]emove a package and its dependencies recur[s]ively:
`sudo pacman -Rs {{package}}`
- [R]emove a package and its dependencies. Also do [n]ot save backups of configuration files:
`sudo pacman -Rsn {{package}}`
- [R]emove a package without prompting:
`sudo pacman -R --noconfirm {{package}}`
- [R]emove orphan packages (installed as [d]ependencies but no[t] required by any package):
`sudo pacman -Rsn $(pacman -Qdtq)`
- [R]emove a package and [c]ascade that to all packages that depend on it:
`sudo pacman -Rc {{package}}`
- List and [p]rint packages that would be affected (does not [R]emove any packages):
`pacman -Rp {{package}}`
- Display [h]elp:
`pacman -Rh`