mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 15:26:04 +02:00
pacman-remove: add page (#5273)
This commit is contained in:
parent
a808abf3db
commit
66b49e9dcc
1 changed files with 32 additions and 0 deletions
32
pages/linux/pacman-remove.md
Normal file
32
pages/linux/pacman-remove.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# pacman --remove
|
||||
|
||||
> Arch Linux package manager utility.
|
||||
> More information: <https://man.archlinux.org/man/pacman.8>.
|
||||
|
||||
- Display help for this subcommand:
|
||||
|
||||
`pacman --remove --help`
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
|
||||
`sudo pacman --remove --recursive {{package_name}}`
|
||||
|
||||
- Remove a package and both its dependencies and configuration files:
|
||||
|
||||
`sudo pacman --remove --recursive --nosave {{package_name}}`
|
||||
|
||||
- Remove a package without prompting:
|
||||
|
||||
`sudo pacman --remove --noconfirm {{package_name}}`
|
||||
|
||||
- Remove orphan packages (installed as dependencies but not required by any package):
|
||||
|
||||
`sudo pacman --remove --recursive --nosave $(pacman --query --unrequired --deps --quiet)`
|
||||
|
||||
- Remove a package and all packages that depend on it:
|
||||
|
||||
`sudo pacman --remove --cascade {{package_name}}`
|
||||
|
||||
- List packages that would be affected (does not remove any packages):
|
||||
|
||||
`pacman --remove --print {{package_name}}`
|
Loading…
Add table
Reference in a new issue