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.
1 |
sudo apt-get remove <Package-Name> |
For example – I want to remove package vim.
1 |
sudo apt-get remove vim |
Before uninstall the package, it ask for confirmation
1 |
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.
1 |
sudo apt-get --purge remove <Package-Name> |
For example removing a package vim and all configuration files:
1 |
sudo apt-get --purge remove vim |