In my previous tutorial, i talk about Ubuntu apt-get package manager. In this post i’ll explain how to uninstall package in Ubuntu through Terminal command.
How to Uninstall/Remove Package/Application in Ubuntu through Terminal Command
To remove package using terminal you just need to know the name of package you want to remove.
sudo apt-get remove <Package-Name>
For example – I want to remove package vim.
sudo apt-get remove vim
Before uninstall the package, it ask for confirmation
Do you want to continue [Y/n]?
If you type Y it will uninstall the package. If you type n, then it Abort the process.
The above command only uninstall the package, but it’s configuration file still remain intact.
If you want to remove package and it’s configuration files, use this command.
sudo apt-get --purge remove <Package-Name>
For example removing a package vim and all configuration files:
sudo apt-get --purge remove vim