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 1MhL89-0005sM-Eq for garchives@archives.gentoo.org; Sat, 29 Aug 2009 10:25:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54061E07A0; Sat, 29 Aug 2009 15:35:00 +0000 (UTC) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by pigeon.gentoo.org (Postfix) with ESMTP id 1903BE07A0 for ; Sat, 29 Aug 2009 15:35:00 +0000 (UTC) Received: by ewy18 with SMTP id 18so3108574ewy.14 for ; Sat, 29 Aug 2009 08:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=cRlN7nmQPtMFLhr5pY5fNbG1wSsiCWIKD12rZ6OaUd8=; b=cndVjt0XVsZ6WMLkEuv/m37OhzL8Pil4QgS0ZH7Imc9BSEh6lMHeO07XXb75SrNOJi iEew1Vl3SWYDv/f4Mnp4AgcsN1inLUatKJpASLN9IMcCD3SWHWIEfUWd+xsh4gwvfQB1 anJ3i/n6BZTh+YBF/vaI7ncy1lR5HUt/PDzjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=oBaErn9HYQ8D5bbKhmu6La87CfqpjY/VJaWQKrgxr0jFDW++MIK9W3npbYYcIiuzwF y5tXn8LdDoAqaJepsuKp3haleZ4f80GwlpBoPv5nbWrnHNS7Y6GViLYZH76FRmBiaMVI RsZObpySfvdouVh8LvRGixePWrDb06F2BSsgA= Received: by 10.216.86.1 with SMTP id v1mr557085wee.97.1251560099466; Sat, 29 Aug 2009 08:34:59 -0700 (PDT) Received: from nazgul.localnet ([196.210.202.145]) by mx.google.com with ESMTPS id i35sm11509294gve.26.2009.08.29.08.34.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Aug 2009 08:34:57 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Regenerating package db Date: Sat, 29 Aug 2009 17:33:27 +0200 User-Agent: KMail/1.12.0 (Linux/2.6.30-gentoo-r4; KDE/4.3.0; x86_64; ; ) Cc: Xavier Parizet References: <4A964CCC.5050602@gentooist.com> <6e6572060908270324y5a2226f1v91e03e9ceaa1c03b@mail.gmail.com> <4A96660F.5040103@gentooist.com> In-Reply-To: <4A96660F.5040103@gentooist.com> 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 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <200908291733.28032.alan.mckinnon@gmail.com> X-Archives-Salt: 20bb0233-b52e-4828-b22c-4725bad4f30e X-Archives-Hash: 52aa9ff00f515110154cc1347bc20444 On Thursday 27 August 2009 12:55:11 Xavier Parizet wrote: > Micka=EBl Bucas a =E9crit : > > You may find some useful informations in /var/log/emerge.log : all lines > > containing ":::" show a succesful emerge. > > > > If you have kept the contents of this file since you installed your > > system, you could then get the list of all packages you have installed. > > It would be a start that you could cleanup afterwards. However, this > > will include system packages and dependencies. And if you have > > uninstalled many packages (as with any update), they would also still be > > present in that list. > > Thanks for the tip :) Now, is it mandatory to run emerge to get > the /var/db/pkg/ thinks, or just do something like emerge > --noreplace will do the trick ? =2D-noreplace is intended to skip merging packages that are already install= ed.=20 Portage will not skip such things as you have deleted the db - the very thi= ng=20 portage uses to see if you have installed it. There is no way to magically= =20 rebuild /var/db/pkg. Look at files in that dir - how would you regenerate t= he=20 contents of CONTENTS? Your initial thought is correct and the only possible one - rebuild the box= =20 from scratch. So it takes two days. So what?=20 =2D-=20 alan dot mckinnon at gmail dot com