Re: [gentoo-user] A Gentoo Enema
On Sat, 17 Dec 2005 18:24:37 +1300, Tom Eastman wrote: One idea I've had is to delete almost every entry in my 'world' file, and then do an 'emerge depclean'. That would be pretty cool, empty out a huge amount of stuff, and then start re-installing at my leisure. That sounds like a lot of work and re-installation. The way I've done it is to edit the world file, removing anything that I don't run, then do an emerge depclean -p. anything that shows up that I want to keep, I put back with emerge -n packagename. Then run depclean -p again until I am happy with what it wants to remove. There's no point in removing and reinstalling packages, especially if you are going to to emerge -e world later. -- Neil Bothwick IBM: Inferior But Marketable. signature.asc Description: PGP signature
Re: [gentoo-user] A Gentoo Enema
Tom Eastman wrote: Hey all, Sorry about any imagery conjured up by the subject line... I've been running the same gentoo system on my computer for several years now... keeping it relativey updated, but over time there's always cruft that builds up, stuff that gets left behind during upgrades, or re-installs. Packages that don't change version for a long time, and don't get recompiled with the latest compiler, etc etc and so on and so forth. So what I want to do is give my computer a complete clean-out. What I really CAN'T be bothered doing is a complete format and re-install! One idea I've had is to delete almost every entry in my 'world' file, and then do an 'emerge depclean'. That would be pretty cool, empty out a huge amount of stuff, and then start re-installing at my leisure. But what that *wouldn't* do is delete all the files in random places that aren't owned by any particular package. This would be a good thing to do when spring cleaning, as it were. Is there a tool that will allow me to find *all* files that aren't owned by any package, so that I can then decide what to do with them? Obviously skipping directories such as /home/. Then I can delete everything that doesn't look critical, hopefully without losing my stuff in places like /boot or /etc either :-) Then I think I would do an emerge -e system, and then start re-adding applications I wanted. What do you think? Does anyone have any ideas about good ways of 'refreshing' my gentoo system? All suggestions appreciated :-) Thanks! Well, what I would do is: % etc-update (to make sure that there aren't any cruft files lying around) and then: % emerge -eD world to rebuild the entire system. You could also do: emerge --newuse -D world to just upgrade things that haven't been built since you change USE options. or if you have gentoolkit installed, revdep-rebuild to verify that all packages have all the correct dependancies. Steve -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] A Gentoo Enema
On Sat, Dec 17, 2005 at 06:24:37PM +1300, Penguin Lover Tom Eastman squawked: Is there a tool that will allow me to find *all* files that aren't owned by any package, so that I can then decide what to do with them? Obviously skipping directories such as /home/. Then I can delete everything that doesn't look critical, hopefully without losing my stuff in places like /boot or /etc either :-) There was this script by Benjamin Braatz called findcruft. http://forums.gentoo.org/viewtopic.php?t=254197highlight=findcruft HTH W -- I assume you've all done stationary phase integrals...right? ~DeathMech, S. Sondhi. P-town PHY 205 Sortir en Pantoufles: up 34 days, 23:03 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] A Gentoo Enema
On 12/16/05, Tom Eastman [EMAIL PROTECTED] wrote: Is there a tool that will allow me to find *all* files that aren't owned by any package, so that I can then decide what to do with them? It should be fairly simple to generate such a list. You can generate a list of all regular files that are owned by an installed package with something like: cd /var/db/pkg; find . -name CONTENTS -exec cat {} \; | grep ^obj | awk '{print $2}' | sort And then a list of all regular files on your system with: find / -type f | grep -v -e ^/home -e ^/tmp -e ^/var/db -e ^/var/tmp | sort Then you just have to diff the two lists to find things that are not owned by a package... -Richard -- gentoo-user@gentoo.org mailing list