pacman remove package code example

Example 1: update package archlinux

sudo pacman -Syu

Example 2: pacman remove package

pacman -R package_name

Example 3: remove package archlinux

# leaving dependencies
pacman -R 

# removing dependencies
pacman -Rs 

# The above may sometimes refuse to run when removing a group which 
# contains otherwise needed packages. In this case try:
pacman -Rsu 

# To remove a package, its dependencies and all the packages that depend
# on the target package:
pacman -Rsc 

# To remove a package, which is required by another package, without
# removing the dependent package:
pacman -Rdd 

# Pacman saves important configuration files when removing certain 
# applications and names them with the extension: .pacsave. To prevent 
# the creation of these backup files use the -n option:
pacman -Rn 

Tags:

Misc Example