From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PQMQW-0003xp-Ow for garchives@archives.gentoo.org; Wed, 08 Dec 2010 15:59:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 826C7E00D3; Wed, 8 Dec 2010 15:58:05 +0000 (UTC) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by pigeon.gentoo.org (Postfix) with ESMTP id 359C5E00D3 for ; Wed, 8 Dec 2010 15:58:04 +0000 (UTC) Received: by ewy24 with SMTP id 24so981319ewy.13 for ; Wed, 08 Dec 2010 07:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=jSgIQcNTpNJxM1ZTzX7lRoG2aWtUhHxXQQBWD/6ixmo=; b=mTu+ENcr3PiePYLF9fCuDBofn09kI68ZgLNNB7ylnnbVxSTBD2J1/RX5AfxRcu8aSr 1EkcZ5cNTXjl+9oWQefOtkkKT8nmftSKNAqE1zAbS68fwpklZhtbjXdk5lpi4N1Pa/eX hvmrlOiOXJ+WtCQFxqmTrXhaBhkNWBxISGnP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Kiix/CNSAuI49qa6VrrZcRdzx6vAnnGD/ymmPFyU/WfUrkpTGyhkrrRW8Mrnxvm7t+ MremVEJ+YLr+bY/DIt8Kutxo6FzyonVFvEXMSE4hpRMeoc7u5H2WrdcdlS6toJWwCxvb WbWji1djusgDDCh1L6gQMDQVvuZNcaLf6XCDY= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.172.65 with SMTP id s43mr751945wel.14.1291823878824; Wed, 08 Dec 2010 07:57:58 -0800 (PST) Received: by 10.216.233.90 with HTTP; Wed, 8 Dec 2010 07:57:58 -0800 (PST) In-Reply-To: <1291807409.5304.6@numa-i> References: <1291807409.5304.6@numa-i> Date: Wed, 8 Dec 2010 07:57:58 -0800 Message-ID: Subject: Re: [gentoo-user] Remove redundant entries in "world" - howto From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 44c2224d-3534-4fff-aec3-750eb855ebd7 X-Archives-Hash: bcd51a6d1815f043ec19053a3a510e67 On Wed, Dec 8, 2010 at 3:23 AM, Helmut Jarausch wrote: > Hi, > > does anybody know about an easy method to remove all entries from > /var/lib/portage/world > which would have been pulled in anyway > even if they were not contained in world. > > My current attempt would be to write a script > which executes emerge -vpc on each entry in world. > If it wouldn't be removed it's obsolete in world. > > Unfortunately this has to be done in several rounds. > > Many thanks for a hint, > Helmut. > > In my experience the world file isn't huge - 50-100 lines - but only if it contains the things that really need to be there. I've simply commented out specific entries and run emerge -pvDuN @world to determine if the entry wasn't necessary, and if it wasn't then removed it. When I've boiled it down to things that need to be there (I.e. - I can still run emerge -pvDuN @world and there would be no changes) then I run emerge - p --depclean to look at what can be removed, make sure it's OK, and then run depclean for real. Hope this helps, Mark