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

83,091

Solution 1

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.

Solution 2

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.

Solution 3

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

Solution 4

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-*
Share:
83,091

Related videos on Youtube

codeLes
Author by

codeLes

Updated on September 17, 2022

Comments

  • codeLes
    codeLes over 1 year

    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?

    • Admin
      Admin almost 15 years
      The 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.
    • Admin
      Admin almost 15 years
      Even if that is the case, I think it is well worth having both of the two as stand-alone questions on Super User.
  • Telemachus
    Telemachus almost 15 years
    If he likes KDE that much, he can always switch to Konquerer and remove Firefox entirely, no?
  • codeLes
    codeLes almost 15 years
    @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.
  • Admin
    Admin almost 15 years
    Is there any difference between uninstalling gnome-desktop-environment and ubuntu-desktop?
  • Admin
    Admin almost 15 years
    @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).
  • Admin
    Admin almost 15 years
    @Jonik: Afaik, ubuntu-desktop includes gnome and some gnome apps. psychocats.net/ubuntu/whichbuntu. You can also check the package dependencies using apt-cache showpkg package_name.
  • Ryan C. Thompson
    Ryan C. Thompson over 14 years
    Of course, Chromium also uses GTK...
  • Admin
    Admin over 12 years
    That 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.
  • BloodyIron
    BloodyIron about 12 years
    I take it the Ubuntu Software Centre doesn't purge?
  • BloodyIron
    BloodyIron about 12 years
    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.
  • Andre
    Andre about 11 years
    Debian has this too, just for the record.