Search:  
Gentoo Wiki

Remove_GNOME


Installation

Tips

Administration

Others

edit

Contents

Introduction

This short HOWTO will help you remove gnome and gnome-related programs.

Important note: This is only a shortcut to uninstalling Gnome. What it actually does is uninstall all packages containing the word 'gnome', which may not be exactly what you're looking for. Be sure to preview everything before actually uninstalling anything!

The emerge option didn't work properly. Works well with eix. This will select all installed packages from the *gnome* category. But first what we need is eix

emerge eix -av

Preview

Create the eix database with the following command

Code: Preview
update-eix

As root, paste the following command into your terminal to preview the gnome applications selected for removal:

Code: Preview
eix -C -I gnome | grep "*" | awk '{print $2}' | xargs emerge -pC

As of more recent versions the output of eix changed. If the above command doesn't work use this:

Code: Preview
eix -C -I gnome | grep "\[[UI]\]" | awk '{print $2}' | xargs emerge -pC

Remove

Execute the following as root to remove gnome and gnome-related applications:

Code: One-liner to wipe out Gnome and related applications
eix -C -I gnome | grep "*" | awk '{print $2}' | xargs emerge -C

Or, for newer versions of eix:

Code: One-liner to wipe out Gnome and related applications
eix -C -I gnome | grep "\[I\]" | awk '{print $2}' | xargs emerge -C

An even better eix method is to use the --only-names option, thereby avoiding the bad practice of assuming eix's output format will remain the same:

Code: One-liner to wipe out Gnome and related applications
eix -CI gnome --only-names | xargs emerge -C

If 'eix' does not work for you do:

Code: Alternative to eix
emerge -ep world | grep "gnome" | gawk '{print $n}' | xargs emerge -C
  n=2.8 (4 works most time)

Additional notes

PROBLEM: If the above emerge command does not work for you. (I got an error stating !! "--ask" should only be used in a terminal. Exiting.)

FIX: I had an argument in my /etc/make.conf such as:

EMERGE_DEFAULT_OPTS="-av". This was automatically appending ask to my emerge command and it didn't like this since I was running a non-standard terminal command to portage. The fix was just to comment that line out for the time being till this command was completed.

After the procedure described above all other ebuilds dependent on Gnome libraries should be broken. If executed, revdep-rebuild will fetch required Gnome libraries back.

To prevent this before removing Gnome as described above one need at least add "-gnome" in USE variable (/etc/make.conf) that will disable Gnome support in other components. Then one need to run emerge -puvDN world to rebuild all packages that refers to Gnome libraries. After that Gnome may be removed as described. Running revdep-rebuild as a final step shall restore the system integrity (a couple of libraries may be fetched back but it's negligible comparing with full Gnome installation).

Retrieved from "http://www.gentoo-wiki.info/Remove_GNOME"

Last modified: Tue, 07 Oct 2008 04:49:00 +0000 Hits: 18,154