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
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