mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 07:49:26 +00:00
Update cheatsheets
This commit is contained in:
38
linux/pacman-remove
Normal file
38
linux/pacman-remove
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacman --remove
|
||||
|
||||
> Arch Linux package manager utility.
|
||||
> See also: `pacman`.
|
||||
> More information: <https://man.archlinux.org/man/pacman.8>.
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
|
||||
`sudo pacman --remove --recursive {{package}}`
|
||||
|
||||
- Remove a package and both its dependencies and configuration files:
|
||||
|
||||
`sudo pacman --remove --recursive --nosave {{package}}`
|
||||
|
||||
- Remove a package without prompting:
|
||||
|
||||
`sudo pacman --remove --noconfirm {{package}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
- List packages that would be affected (does not remove any packages):
|
||||
|
||||
`pacman --remove --print {{package}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pacman --remove --help`
|
||||
Reference in New Issue
Block a user