Ubuntu – How to uninstall unused window managers and related packages

aptdpkgwindow-manager

I have uninstalled most unused session managers, but there are a few that still show among the options at login. The full list is:

  • Gnome classic
  • Gnome classic (No effects)        [keep!]
  • Gnome/Openbox
  • Openbox        [keep!]
  • Ubuntu
  • Ubuntu 2D

If, as indicated above, I want to keep only "Gnome classic (No effects)" and "Openbox", what installed packages can I remove with apt-get?

Also, supposing that removing those packages does not yet eliminate all the unwanted options from the list above (e.g. maybe they are included in the same Debian package that includes one of the wanted options), is there a way to at least remove them from the options list?

Lastly, I see, from, for example, dpkg-show -l | grep ii | grep -i xfce, that I may still have remnants lying around from formerly installed session managers, even though they no longer show up among the options at login. (They persist, BTW, even after sudo apt-get -y autoremove.) How can I find what all those remaining packages are so that I can delete them?

EDIT: Whatever you do, do not run sudo apt-get remove unity*, or anything similar. If you want to uninstall unity, see here.

Best Answer

To remove ubuntu sudo apt-get remove unity* I don't think you can remove gnome classic with effects and keep it without.

You can remove them from the login screen by deleting the file at /usr/share/xsessions/

Related Question