On Wed, Dec 8, 2010 at 5:23 AM, Helmut Jarausch <jarau...@igpm.rwth-aachen.de> 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. > >
You may find that using 'emerge --deselect some-package' to be what you need. It removeds the file from your world file, but does not unmerge the package. That command switch is the functional opposite of --noreplace. I think you will find a wealth of information in the manpage for emerge. Happy reading! -- Matthew W. Summers