Remove desktop environments cleanly

6

2

I'm using Fedora 15 Gnome 3 spin and I've installed awesome as a window manager. I want to completely remove installed gnome, lxde and xfce but not to damage already installed applications. How can I go about doing this?

Clark

Posted 2011-11-27T20:18:54.853

Reputation: 171

2When you say "completely remove" do you include the underling libraries, and if so are you willing to lose those applications that rely upon those libraries without being integrated into the window-managers/desktops? Because tese things are delivered in a compoentized way, they can end up being deeply entangled with things that seemed separate. Indeed that is part of what distributions manage: the complex inter-relationships between various libraries, services and applications. – dmckee --- ex-moderator kitten – 2011-11-27T20:31:12.687

No I mean just libraries that is not used by my apps. – Clark – 2011-11-27T21:58:46.017

It's probably less hustle to -uninstall everything related to DE- and later install the applications you need, letting the package manager resolve dependencies and install DE specific libraries. – Ярослав Рахматуллин – 2013-03-13T18:01:03.037

Answers

8

Rather than removing packages one by one, use yum groupremove "GNOME Desktop Environment". You can check available group of software by using yum grouplist command. Search for groups related to xfce and lxde and apply the same yum groupremove package_group.

But be careful because yum groupremove will remove all packages, of any type, in the named group. It will also remove any package that depends on any of these packages. So first you check for the dependencies if you need them.

However, you can instruct yum to remove only those packages which are not required by any other packages or groups by adding the groupremove_leaf_only=1 directive to the [main] section of the /etc/yum.conf configuration file. Refer Fedora 15 deployment guide.

Sachin Divekar

Posted 2011-11-27T20:18:54.853

Reputation: 776

Thanks, and can you answer to my bottom comment? – Clark – 2011-11-27T21:15:49.190

Your bottom comment is not in context of my answer because yum packages groups is a different concept where you are dealing with group of packages that are mentioned in the repository and not with the individual package. – Sachin Divekar – 2011-11-28T07:01:37.683

2

You can remove them through YUM. Firstly, find all the packages you want to remove. Something like this should work:

yum list installed | grep -Pi '(gnome|lxde|xfce)'

Then you can go and uninstall them.

yum remove gnome-package-name

Keep in mind that remove will also remove anything depending on it. So, if you find something at the root of GNOME/KDE/XFCE, you can wipe it all out in one command.

Also keep in mind, and this is VERY important, you could remove software you use often including any settings it saves. Removing these programs is quite risky. It might be worth it to back up your home folder and re-install fresh. It could be the difference between days of hair pulling and having a little time to relax while you re-install.

FakeRainBrigand

Posted 2011-11-27T20:18:54.853

Reputation: 21

I'll try it now. No Awesome is tiled manager. – Clark – 2011-11-27T20:48:16.740

so here is list: http://pastebin.com/aGGWwZML. And there is list of dependencies: http://pastebin.com/y45qVMmG. I need to use chrome, firefox, psi, pidgin, skype, transmission, remmina, netbeans, geany, truecrypt, virtualbox, vlc, totem, rhythmbox, libreoffice and gimp. So what packages can I delete safely without damage to those packages which I'm using? Also I can use alternatives for rhythmbox, vlc and totem but another packages are too important for me.

– Clark – 2011-11-27T20:57:27.567

See last paragraph of my answer. There I have mentioned how you can remove only those packages which are not required by any other packages. So your other packages will be safe. – Sachin Divekar – 2011-11-28T14:34:46.720