Gentoo Archives: gentoo-user

From: Roman Zilka <zilka@×××××××.cz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Decrapifying my system
Date: Mon, 18 Jul 2011 08:16:09
Message-Id: 20110718101433.d19c71da.zilka@fi.muni.cz
In Reply to: [gentoo-user] Decrapifying my system by Michael Sullivan
1 Michael Sullivan (Sun, 17 Jul 2011 16:19:14 -0500):
2 > I'm running into space issues (my / partition is at 99% of capacity) and
3 > I'd like some advice on what I can remove and how. My USE line in
4 > /etc/make.conf looks like this:
5 >
6 > USE="-setup declarative static-libs gallium moonlight semantic-desktop
7 > -kdeprefix -aqua policykit cdda vhosts automount flashblock jadetex
8 > vanilla additions mplayer -evo gentoo a52 -asterisk dbus ctype session
9 > zaptel ivtv -kerberos gphoto2 pcre mode-owner -firefox seamonkey
10 > -mozilla candy apache2 oss -apm alsa arts avi berkdb bitmap-fonts cdr
11 > crypt cups doc encode fortran f77 foomaticdb gdbm gif gpm -gnome
12 > gstreamer -gtk -gtk2 imlib jpeg -kde libg++ libwww mad mikmod motif mpeg
13 > ncurses nls oggvorbis pam pdf lib png ppds python -qt quicktime readline
14 > -samba sasl sdl threads nntp spell ssl svga tcltk tcpd truetype usb X
15 > xml xml2 xmms xv zlib x86 imap offensive java mysql examples mmx mmx2
16 > perl divx4linux real mmxext audiofile nas snmp hal unicode guile slp
17 > tidy dvd dvdr dvdread flash glut new-login browserplugin nsplugin bzip2
18 > win32codecs v4l v4l2 ruby sql lirc mythtv dvb ffmpeg userlocales php
19 > -debug jack jack-tempfs portaudio bash-completion bind-mysql joystick
20 > cli cgi ftp dba nptl nptlonly libclamav syslog jikes mpm-leader ithreads
21 > -nautilus tcl expat"
22 >
23 > and I'd like to completely remove both gnome and kde (except for kpat).
24 > I use xfce, so that shouldn't be a problem, right? I've tried emerge
25 > -C gnome and emerge -C kde, but the gnome line only unmerged the final
26 > gnome package, and the kde line didn't work at all (I'm thinking it's
27 > called kde-meta now), but unmerging kde-meta only unmerged the final kde
28 > package. How do I do this?
29
30 This strategy will do a thorough clean-up, although you'll have to be
31 patient:
32 1. Re-check that you're on the right profile - now that you don't use
33 KDE/GNOME anymore, the profile default/linux/$ARCH/10.0/desktop is
34 probably the right one for you (unless you run hardened/selinux, of
35 course). Use for example 'eselect profile' to read/set profiles.
36 2. Re-check that your /var/lib/portage/world only contains stuff you
37 really need.
38 3. Remove all positive USE flags (i.e., those without a leading '-').
39 4. Append the following line to /etc/portage/package.use:
40 dev-lang/perl ithreads
41 (Is it just me or does every other autoconf run fail if ithreads aren't
42 in perl?)
43 5. Run 'emerge -pvuDN world' and focus on the flags that are going to
44 be (newly) switched off - the green ones.
45 6. Put back (only) those such flags that you now know pull some
46 actually useful functionality into your system and that you don't want
47 removed.
48 7. Run 'emerge -vuDN world' -> 'etc-update' -> 'emerge -vc' ->
49 'revdep-rebuild -i'.
50
51 -rz