How do you completely remove ubuntu-desktop along with all installed packages with it?
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.
Solution 1:
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).
Solution 2:
First do
apt-get remove ubuntu-desktop
apt-get autoremove
Then do the
sudo apt-get remove nautilus nautilus-* gnome-power-manager gnome-screensaver gnome-termina* gnome-pane* gnome-applet* gnome-bluetooth gnome-desktop* gnome-sessio* gnome-user* gnome-shell-common zeitgeist-core libzeitgeist* gnome-control-center gnome-screenshot && sudo apt-get autoremove
to end up with a completely GUI'less environment. This worked for me to remove the ubuntu-desktop I had installed on my Ubuntu Server