HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pacman --remove — Remove packages from the system. See also: `pacman`. More information: <https://manned.org/pacman.8>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandremovefromclisystempacman --removepackages
linux

Problem

How to use the pacman --remove command: Remove packages from the system. See also: pacman. More information: <https://manned.org/pacman.8>.

Solution

pacman --remove — Remove packages from the system. See also: pacman. More information: <https://manned.org/pacman.8>.

[R]emove a package and its dependencies recur[s]ively:
sudo pacman -Rs {{package}}


[R]emove a package and its dependencies. Also do [n]ot save backups of configuration files:
sudo pacman -Rsn {{package}}


[R]emove a package without prompting:
sudo pacman -R --noconfirm {{package}}


[R]emove orphan packages (installed as [d]ependencies but no[t] required by any package):
sudo pacman -Rsn $(pacman -Qdtq)


[R]emove a package and [c]ascade that to all packages that depend on it:
sudo pacman -Rc {{package}}


List and [p]rint packages that would be affected (does not [R]emove any packages):
pacman -Rp {{package}}


Display [h]elp:
pacman -Rh

Code Snippets

[R]emove a package and its dependencies recur[s]ively

sudo pacman -Rs {{package}}

[R]emove a package and its dependencies. Also do [n]ot save backups of configuration files

sudo pacman -Rsn {{package}}

[R]emove a package without prompting

sudo pacman -R --noconfirm {{package}}

[R]emove orphan packages (installed as [d]ependencies but no[t] required by any package)

sudo pacman -Rsn $(pacman -Qdtq)

[R]emove a package and [c]ascade that to all packages that depend on it

sudo pacman -Rc {{package}}

Context

tldr-pages: linux/pacman --remove

Revisions (0)

No revisions yet.