How To: Uninstall a package in Linux Ubuntu

I am learning Linux as quickly as possible. I am using this site as a repository to support the bits and pieces of code that I have found useful. The following example is code to remove apache2, however, is useful to remove any package, just replace apache2.

sudo apt-get purge apache2
sudo apt-get clean
sudo apt-get update
sudo apt-get install apache2

Source(s)

  • http://ubuntuforums.org/showthread.php?p=4605385