Skip to content

Commit

Permalink
pacman-r: add alias page; pacman-remove: update page (tldr-pages#14807)
Browse files Browse the repository at this point in the history
  • Loading branch information
angadsgrover authored Nov 16, 2024
1 parent dc01fda commit f708b92
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
7 changes: 7 additions & 0 deletions pages/linux/pacman-r.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pacman -R

> This command is an alias of `pacman --remove`.
- View documentation for the original command:

`tldr pacman remove`
28 changes: 14 additions & 14 deletions pages/linux/pacman-remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion scripts/wrong-filename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f708b92

Please sign in to comment.