How To Remove Packages From Ubuntu, Debian, Mint and Kali with Apt-Get Uninstall Command with Examples

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/remove-packages-ubuntu-debian-mint-kali-apt-get-uninstall-command-examples/
PINTEREST
PINTEREST
INSTAGRAM

apt-get is standard package manager provided by popular distributions like Ubuntu, Debian, Mint and Kali. We can use apt-get removeand purge in order to remove packages from system. apt-get This package manager provides a lot of options in order to manage packages precisely. We have all ready examined very complete tutorial about apt-get command in the following link.

Apt and Apt-Get Tutorial With Examples

Uninstall Single Package

The simples usage form for apt-get remove command is providing single package name. While providing package name we can provide only package name or other architecture and distributions related parts too. In this exmaple we will remove tmux package.

Uninstall Single Package

Uninstall Single Package

Automatically Remove Package

As we can see in previous example the apt-get command is asking question about am I sure for this operation. Providing Y will accept but every time doing this can bore us. We can provide -y option if we want accept and do not provide further Y to the console like below.

Uninstall Multiple Packages

We can also uninstall multiple packages with a single command. We will delimite the package names with space. In this example we will remove packages named tmux and vim.

Uninstall Multiple Packages with Globe

Some packages are provided with same begging but different end for their names. For example openoffice-writer , openoffice-calc etc. We can use  globe * operation to specify all packages those starts with openoffice- name like openoffice-*.

Uninstall Multiple Packages with Globe

Uninstall Multiple Packages with Globe

Uninstall Packages and Remove Configurations Too with purge

Uninstalling packages with removewill only uninstall package but do not remove related configuration and cache files. We can use purge in order to remove all related configuration and cache files like below.

LEARN MORE  How To Install Updates In Ubuntu, Debian, Mint, Kali

Uninstall Packages and Remove Configurations Too

Uninstall Packages and Remove Configurations Too

Uninstall Unused Packages and Cache Files

After some time the old and cache files will take some space in our disk. These files are completely unnecessary files and can be removed without problem. The autoremove command can be used to remove all these files and cache.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/remove-packages-ubuntu-debian-mint-kali-apt-get-uninstall-command-examples/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)