Michael Sullivan (Sun, 17 Jul 2011 16:19:14 -0500):
> I'm running into space issues (my / partition is at 99% of capacity) and
> I'd like some advice on what I can remove and how.  My USE line in
> /etc/make.conf looks like this:
> 
> USE="-setup declarative static-libs gallium moonlight semantic-desktop
> -kdeprefix -aqua policykit cdda vhosts automount flashblock jadetex
> vanilla additions mplayer -evo gentoo a52  -asterisk dbus ctype session
> zaptel ivtv -kerberos gphoto2 pcre mode-owner -firefox seamonkey
> -mozilla candy apache2 oss -apm alsa arts avi berkdb bitmap-fonts cdr
> crypt cups doc encode fortran f77 foomaticdb gdbm gif gpm -gnome
> gstreamer -gtk -gtk2 imlib jpeg -kde libg++ libwww mad mikmod motif mpeg
> ncurses nls oggvorbis pam pdf lib png ppds python -qt quicktime readline
> -samba sasl sdl threads nntp spell ssl svga tcltk tcpd truetype usb X
> xml xml2 xmms xv zlib x86 imap offensive java mysql examples mmx mmx2
> perl divx4linux real mmxext audiofile nas snmp hal unicode guile slp
> tidy dvd dvdr dvdread flash glut new-login browserplugin nsplugin bzip2
> win32codecs v4l v4l2 ruby sql lirc mythtv dvb ffmpeg userlocales php
> -debug jack jack-tempfs portaudio bash-completion bind-mysql joystick
> cli cgi ftp dba nptl nptlonly libclamav syslog jikes mpm-leader ithreads
> -nautilus tcl expat"
> 
> and I'd like to completely remove both gnome and kde (except for kpat).
>  I use xfce, so that shouldn't be a problem, right?  I've tried emerge
> -C gnome and emerge -C kde, but the gnome line only unmerged the final
> gnome package, and the kde line didn't work at all (I'm thinking it's
> called kde-meta now), but unmerging kde-meta only unmerged the final kde
> package.  How do I do this?

This strategy will do a thorough clean-up, although you'll have to be
patient:
1. Re-check that you're on the right profile - now that you don't use
KDE/GNOME anymore, the profile default/linux/$ARCH/10.0/desktop is
probably the right one for you (unless you run hardened/selinux, of
course). Use for example 'eselect profile' to read/set profiles.
2. Re-check that your /var/lib/portage/world only contains stuff you
really need.
3. Remove all positive USE flags (i.e., those without a leading '-').
4. Append the following line to /etc/portage/package.use:
dev-lang/perl ithreads
(Is it just me or does every other autoconf run fail if ithreads aren't
in perl?)
5. Run 'emerge -pvuDN world' and focus on the flags that are going to
be (newly) switched off - the green ones.
6. Put back (only) those such flags that you now know pull some
actually useful functionality into your system and that you don't want
removed.
7. Run 'emerge -vuDN world' -> 'etc-update' -> 'emerge -vc' ->
'revdep-rebuild -i'.

-rz

Reply via email to