On Sunday 26 April 2009 08:40:39 John covici wrote: > OK, so this brings up the question, how do I make sure (if there is a > way to do so) that my world file does not contain anything which it > should not -- I am sure I have made the mistake of forgetting to put > the -1, so it would be interesting if there were a way to at least get > a list of such packages.
Experience and knowledge of current software you are using is actually your best guide here. Open the world file in an editor and examine each line. If you paid attention while emerging stuff you may find for example that you have xulrunner in world. Immediately, you know it shouldn't be there - it's a dependency for browsers that use it. So remove it from world. If you use the kde -meta packages, you can probably remove everything that is part of the official shipped kde packages. But not k3b for instance, that is a separate project that you must install separately. "emerge -av --depclean" is the best tool to tell you when you get it wrong - if --depclean wants to remove it and you want to keep it, add it to world again (with emerge -n or even just edit the world file manually) It should be easy enough to write a program that examines world and displays all packages it finds that are dependencies of something else in world, but I haven't found one, and prefer the manual approach above. -- alan dot mckinnon at gmail dot com