A common question and once again a simple answer. On Ubuntu 14.04 (LTS) if you installed a package and now want to remove it. I will give you a quick example here.
Recently installed GAMIN as a backend for monitoring logs on the well know Ubuntu Fail2Ban monitor (tutorial coming soon). Anyway, did not need it so removed and will discuss why on my tutorial on Fail2Ban.
Anyhow to remove GAMIN (in this case) you simply run the following from the terminal:
sudo apt-get remove --purge gamin
Your terminal respond showing that gamin AND it’s dependencies were uninstalled.
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: gamin* libgamin0* libsys-gamin-perl* 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 393 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 125600 files and directories currently installed.) Removing libsys-gamin-perl (0.1-1build3) ... Removing libgamin0 (0.1.10-4.1ubuntu1) ... Purging configuration files for libgamin0 (0.1.10-4.1ubuntu1) ... Removing gamin (0.1.10-4.1ubuntu1) ... Purging configuration files for gamin (0.1.10-4.1ubuntu1) ... Processing triggers for man-db (18.104.22.168-1ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
So it’s that easy on Ubuntu 14.04 (LTS). So it will work the same for any other application so let’s say you wanted to uninstall something like phpmyadmin (also coming in a tutorial soon). You would simply remove it as follows.
sudo apt-get remove --purge phpymyadmin
If you are new to Ubuntu and do not even know what “sudo is yet” …. read this article.