How to uninstall a package in Ubuntu

Uninstalling a package in Ubuntu can be performed in many ways. For example, assume that the package named vim needs to be uninstalled.

Using the shell

The package vim can be uninstalled using apt-get:

$ sudo apt-get remove vim

Using Synaptic

If Synaptic is not present, install it from Ubuntu repositories using the package name synaptic.

Open it from the Dash with the name Synaptic Package Manager. Search for the package name vim, right-click on its entry in the results, choose Mark for Removal and click Apply.

Using Software Center

Open Ubuntu Software Center from the Dash. Search for the package name vim. When it shows up in the search results, choose it and click Remove.

Tried with: Ubuntu 12.04.2 LTS

How to install a package from Ubuntu repositories

Installing a package from the Ubuntu repositories is easy. There are three ways to do it.

You can use the Ubuntu Software Center. Open it, search for the package name and install it.

You can use the Synaptic program. You may have to install it, if it is not already there. Open it, search the package name, mark it for installation and choose Apply.

If you like the terminal, use the apt-get program. For example, to install a package named Foo:

$ sudo apt-get install Foo

Tried with: Ubuntu 12.04.1 LTS