2021-02-19 07:29:27 -03:00
|
|
|
# pacman --remove
|
|
|
|
|
|
|
|
> Arch Linux package manager utility.
|
2023-05-14 17:11:37 +05:30
|
|
|
> See also: `pacman`.
|
2024-09-24 21:47:18 +02:00
|
|
|
> More information: <https://manned.org/pacman.8>.
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- [R]emove a package and its dependencies recur[s]ively:
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`sudo pacman -Rs {{package}}`
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- [R]emove a package and its dependencies. Also do [n]ot save backups of configuration files:
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`sudo pacman -Rsn {{package}}`
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- [R]emove a package without prompting:
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`sudo pacman -R --noconfirm {{package}}`
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- [R]emove orphan packages (installed as [d]ependencies but no[t] required by any package):
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`sudo pacman -Rsn $(pacman -Qdtq)`
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- [R]emove a package and [c]ascade that to all packages that depend on it:
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`sudo pacman -Rc {{package}}`
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- List and [p]rint packages that would be affected (does not [R]emove any packages):
|
2021-02-19 07:29:27 -03:00
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`pacman -Rp {{package}}`
|
2022-10-17 20:09:25 +05:30
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
- Display [h]elp:
|
2022-10-17 20:09:25 +05:30
|
|
|
|
2024-11-16 20:11:41 +08:00
|
|
|
`pacman -Rh`
|