On Thursday 27 August 2009 12:55:11 Xavier Parizet wrote: > Mickaël Bucas a écrit : > > 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 <package> to get > the /var/db/pkg/<package> thinks, or just do something like emerge > --noreplace <package> will do the trick ?
--noreplace is intended to skip merging packages that are already installed. Portage will not skip such things as you have deleted the db - the very thing portage uses to see if you have installed it. There is no way to magically rebuild /var/db/pkg. Look at files in that dir - how would you regenerate the contents of CONTENTS? Your initial thought is correct and the only possible one - rebuild the box from scratch. So it takes two days. So what? -- alan dot mckinnon at gmail dot com