Ubuntu – How to completely remove ubuntu-desktop along with all installed packages with it

14.04server

How do you completely remove ubuntu-desktop along with all installed packages with it? I'm using Ubuntu 14.04 server on vps and used sudo apt-get install ubuntu-desktop to install.

Best Answer

Even better than just doing remove, you can use purge and then autoremove.

sudo apt-get purge ubuntu-desktop
sudo apt-get autoremove

Purge option according to the man page for apt-get:

**purge**
purge is identical to remove except that packages are
removed and purged (any configuration files are deleted too).
Related Question