How to remove the Ubuntu Gnome desktop after making the switch to KDE?

16

2

This is the opposite of this question. Basically I've been using Ubuntu for a while but decided to give KDE a shot so I went through the process of getting the latest KDE installed. I'm very impressed with KDE and the Kwin window manager seems like a better WM than Compiz which is what I was using for Gnome (sure that's an oppinion).

This was an Ubuntu Jaunty install. So how do I go about removing the Gnome desktop? Is there an automated way similar to what my previous question covered?

UPDATE: Should there be any packages I should NOT remove in the process?

codeLes

Posted 2009-08-24T13:49:30.513

Reputation: 1 772

2The answer is essentially the same as your previous question. You just need to find the equivalent meta-package. It's probably gnome or gnome-desktop-environment. – Telemachus – 2009-08-24T14:05:32.140

3Even if that is the case, I think it is well worth having both of the two as stand-alone questions on Super User. – Jonik – 2009-08-24T14:32:48.720

Answers

8

The purge command is a good start. In addition, you probably want to remove all the dependent libraries that were installed only to get Gnome. You can do that via autoremove in apt-get or, if you use aptitude, it should happen automatically.

Note that the purge command has an oddity: it purges items you remove explicitly, but only removes any automatically removed dependent packages. (That is, if you enter aptitude purge foo-bar and fizzbuzz gets automatically removed at the same time, foo-bar is purged but fizzbuzz is only removed.) So a good way to recursively purge is this:

aptitude purge foo-bar && aptitude purge ~c

The ~c search in aptitude finds any packages that were removed but not purged in the first removal.

One final note, if you haven't been using aptitude, always check its output the first time you try to run it. Don't simply say "Yes" to whatever it wants to do. Depending on what package manager you've been using, you may find that aptitude thinks some things should be autoremoved, but you prefer to keep them.

Telemachus

Posted 2009-08-24T13:49:30.513

Reputation: 5 695

I take it the Ubuntu Software Centre doesn't purge? – BloodyIron – 2012-05-01T13:53:47.710

@BloodyIron To be honest, I'm not sure. I don't think the Ubuntu Software Centre existed the last time I used Ubuntu. I'm more comfortable with the command-line tools (and Debian), but there may be a GUI or Ubuntu-specific way to do it as well. – Telemachus – 2012-05-01T14:01:53.953

well, I'm a fan of the CLI too, but I like the idea of a GUI front end not lacking in features (such as purge). Having such shortcomings in a GUI app/frontend just limits a user who doesn't want to use CLI, why not put it in? I'm curious as I don't know either. – BloodyIron – 2012-05-01T14:16:31.440

19

Ubuntu has a built-in tool for changing the type of system you are running.

$ sudo tasksel

This tool lets you check the box next to the type of system you want (Kubuntu, Xubuntu, Ubuntu, Ubuntu Server) and then confirm to have the tool re-configure your system, removing and adding packages as needed.

Majik

Posted 2009-08-24T13:49:30.513

Reputation: 252

1Debian has this too, just for the record. – Andre – 2013-04-20T13:12:05.097

8

I think the simplest way to do this is to remove ubuntu-desktop and install kubuntu-desktop.

sudo apt-get install kubuntu-desktop
sudo apt-get --purge remove ubuntu-desktop

You can also just uninstall gnome-desktop-environment instead of ubuntu-desktop.

user4358

Posted 2009-08-24T13:49:30.513

Reputation:

1Is there any difference between uninstalling gnome-desktop-environment and ubuntu-desktop? – Jonik – 2009-08-24T14:23:11.407

4@Jonik: I use Debian not Ubuntu, so I can't test it. But in general, you can find out by simply entering aptitude -s purge thing1 and then aptitude -s purge thing2. The -s flag is for simulate, and it allows you to check things safely (and as a regular user - no need to become root first or use sudo). – Telemachus – 2009-08-24T14:27:40.463

3

@Jonik: Afaik, ubuntu-desktop includes gnome and some gnome apps. http://www.psychocats.net/ubuntu/whichbuntu. You can also check the package dependencies using apt-cache showpkg package_name.

– None – 2009-08-24T14:45:58.273

1That won't work. In the standard Ubuntu install, everything is marked as manually installed, so when you sudo aptitude purge ubuntu-desktop, only the meta-package is removed; all of GNOME remains installed. – Mechanical snail – 2011-10-05T23:51:55.337

3

Well, you cant totally remove Gnome because, many common programs on Ubuntu (read Firefox) use Gnome Libraries.

Lakshman Prasad

Posted 2009-08-24T13:49:30.513

Reputation: 2 245

If he likes KDE that much, he can always switch to Konquerer and remove Firefox entirely, no? – Telemachus – 2009-08-24T14:00:51.133

@Telemachus: tried Konquerer... not for me. :) but I've actually been using Chromium for my default browser lately, the nightly builds are very nice. Have to use Firefox for Quake Live though. – codeLes – 2009-08-24T14:11:41.880

1Of course, Chromium also uses GTK... – Ryan C. Thompson – 2009-09-08T01:12:28.963

2

I'm not 100% but I'm fairly sure the equivalent meta package is gnome-desktop

That's right... I removed gnome by this:

sudo apt-get remove gnome-*

paatos

Posted 2009-08-24T13:49:30.513

Reputation: 21