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.60) (envelope-from ) id 1Fy5UI-00033g-PU for garchives@archives.gentoo.org; Wed, 05 Jul 2006 11:24:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k65BM1dG012806; Wed, 5 Jul 2006 11:22:01 GMT Received: from ilievnet.com ([84.21.204.200]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k65BBiLO012328 for ; Wed, 5 Jul 2006 11:11:45 GMT Received: (qmail 3275 invoked from network); 5 Jul 2006 14:11:44 +0300 Received: from unknown (HELO ?10.0.1.11?) (10.0.1.11) by 0 with SMTP; 5 Jul 2006 14:11:44 +0300 Message-ID: <44AB9E70.6010205@ilievnet.com> Date: Wed, 05 Jul 2006 14:11:44 +0300 From: Daniel User-Agent: Thunderbird 1.5.0.4 (X11/20060704) 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] world favorites: pros and cons References: <44AB8AEF.70104@ilievnet.com> <44AB91EC.9070701@mid.message-center.info> <20060705115509.2905ae6d@hactar.digimed.co.uk> In-Reply-To: <20060705115509.2905ae6d@hactar.digimed.co.uk> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 90336bf0-4623-43ff-a4ce-145e18af811e X-Archives-Hash: dc267ca4f701d466d787c2025ec746af Neil Bothwick wrote: > On Wed, 05 Jul 2006 12:18:20 +0200, Alexander Skwar wrote: > >> But you'll still miss some packages this way - packages which aren't >> in the world file and which are also no dependency of *CURRENTLY* >> installed packages. Those are normally packages, which aren't used >> anymore and could be removed. I forgot how to find out, which packages >> that are. > > emerge --depclean --pretend > > Your replies make me feel I haven't done wrong trying to put every single package in the world set. Actually in my fear not to miss some updates I use this script: --- emerge -DuNpv | cut -sf2 -d '/' |\ cut -f1 -d ' '|\ while read pkg; do find /usr/portage/ -name ${pkg}.ebuild; done | sed 's/\/usr\/portage\///g' |\ while read a; do echo ${a%/*}; done |\ xargs -n1 emerge --- This way all dependencies get individually emerged and therefore recorded in the world file. Of course excluding some particular cases. For example: "emerge xmms" -> pulls-in gtk+-1.2", while "emerge mozilla-firefox" -> pulls-in gtk+2.8. So in this case the aforementioned script used with "emerge xmms mozilla-firefox" will individually emerge only gtk+-2.8 and gtk+-1.2 would be emerged as dependency of xmms and won't get recorded in the world set. -- Best regards Daniel -- gentoo-user@gentoo.org mailing list