From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1IAgdl-0001Kn-Av for garchives@archives.gentoo.org; Tue, 17 Jul 2007 06:34:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6H6XM6N029540; Tue, 17 Jul 2007 06:33:22 GMT Received: from smtp.easynet.es (smtp.easynet.es [62.93.189.64]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6H6RtAq022637 for ; Tue, 17 Jul 2007 06:27:56 GMT Received: from bt-silvano.easynet.es ([213.139.15.18] helo=[172.30.1.51]) by smtp.easynet.es with asmtp (Exim 4.33; FreeBSD) id 1IAgXL-000PpB-LT for gentoo-user@lists.gentoo.org; Tue, 17 Jul 2007 08:27:55 +0200 Message-ID: <469C613F.5030002@silvanoc.com> Date: Tue, 17 Jul 2007 08:27:11 +0200 From: =?ISO-8859-1?Q?Abraham_Mar=EDn_P=E9rez?= User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Gentoo Machine Cleanup References: <1e6142750707161618s3ddef89fj7daf895c947ee698@mail.gmail.com> <5bdc1c8b0707161629x16ce0a1x95ec539cbad075cf@mail.gmail.com> In-Reply-To: <5bdc1c8b0707161629x16ce0a1x95ec539cbad075cf@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Easynet-bounce-key: easynet.es;tecnic5@silvanoc.com;1184653676;15362559; Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l6H6XM6h029540 X-Archives-Salt: bb728d44-365d-4a16-a139-734c152c8f41 X-Archives-Hash: 2564e28e161123e88e0ef68cfdac60c2 Mark Knecht escribi=F3: > On 7/16/07, Samir Faci wrote: >> Hi all, >> >> So, I have a gentoo install that's slowly evolved over the past 3=20 >> years >> or so years. It's now so cluttered with packages, it's becoming=20 >> ridiculous, >> especially for a headless server. What I'd like to do is be able to=20 >> remove >> all KDE/Gnome/X/gtk/qt/...etc out of the machine and not have it=20 >> break the >> machine completely. >> >> Any suggestion on how to do go about this? At this stage, I'd like th= e >> server to have the basic system build, LAMP, and Postfix. >> >> If I start removing packages, then revdep complains about=20 >> dependencies and >> ends pulling back the packages I had removed, same thing with world. = I >> globally removed all the X related flags I can think of. >> >> Also, in the process of switching to a hardened profile, which is one=20 >> reason >> why I wanted to clean up the install. >> >> Thanks again, >> >> Any help would be appreciated. >> >> --=20 >> Samir >> > > Hi Samir, > You'll probably get some answers more detailed than mine but > fundamentally it goes something like this: > > 1) First do and emerge -DuN world and make sure everything is up to dat= e. > > 2) By hand then emerge -C everything (for instance) with gnome or kde > in the package name. > > 3) Next do an emerge --depclean and let portage remove packages that > were needed for gnome or kde but not required now > > 4) Do a revdep-rebuild and see what it wants to pull in. If it's > trying to pull in something you don't think is necessary then do an > emerge -pe --tree and look at why it's getting pulled in. Either > remove what's causing it to get rebuilt or let it get pulled back in. > > At this point it's lather and repeat if necessary. > > I've done this a couple of times. It' works but be careful that you > don't reboot during the process as something might be gone that's > still necessary. > > Hope this helps, > Mark I'd proceed similar to this, but changing order: 1) Edit /var/lib/portage/world and unlist every unwanted package. 2) Edit /etc/make.conf and explicitly unset every use tag related to=20 packages you don't want in your system. 3) run emerge --update --deep --newuse --ask world 4) run emerge --depclean --ask 5) run revdep-rebuild If you update your system before removing unwanted packages from world=20 file you'll waste time updating packages that will be uninstalled=20 afterwards (and big packages, must be said). This way you'll update only=20 what you'll keep. Needless to say, it's always a good idea to back-up your system before=20 proceeding. HTH, Abraham --=20 --=20 gentoo-user@gentoo.org mailing list