remove package linux code example
Example 1: how to delete a package in ubuntu
sudo apt-get --purge remove [package]
Example 2: uninstall package ubuntu
sudo apt remove <package name>
Example 3: remove package archlinux
# leaving dependencies
pacman -R <package_name>
# removing dependencies
pacman -Rs <package_name>
# The above may sometimes refuse to run when removing a group which
# contains otherwise needed packages. In this case try:
pacman -Rsu <package_name>
# To remove a package, its dependencies and all the packages that depend
# on the target package:
pacman -Rsc <package_name>
# To remove a package, which is required by another package, without
# removing the dependent package:
pacman -Rdd <package_name>
# 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 <package_name>
Example 4: how to remove package files in linux
tar xvf 1.3.2.tar.gz
Example 5: how to remove package files in linux
sudo nano /etc/postfix/main.cf