1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

pacman-r: add alias page; pacman-remove: update page (#14807)

This commit is contained in:
Angad Singh Grover 2024-11-16 20:11:41 +08:00 committed by GitHub
parent dc01fda3f4
commit f708b92311
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 15 deletions

7
pages/linux/pacman-r.md Normal file
View file

@ -0,0 +1,7 @@
# pacman -R
> This command is an alias of `pacman --remove`.
- View documentation for the original command:
`tldr pacman remove`

View file

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

View file

@ -10,7 +10,7 @@ OUTPUT_FILE="inconsistent-filenames.txt"
rm -f "$OUTPUT_FILE"
touch "$OUTPUT_FILE"
IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman s")
IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman r" "pacman s")
set -e