Hello,

On Sun, 25 Apr 2010 13:18:25 +0200
Angelo Arrifano <mik...@gentoo.org> wrote:

> Hello developers developers and developers,
> 
> Ever wondered how much crap is left in your X-years old Gentoo box?
> 
> I just developed a python utility to efficiently find orphaned files
> in the system. By orphaned files I mean the files that are present on
> system directories and don't belong to any installed package.
> 
> The package builds a virtual filesystem (cache) on the RAM using
> python hash tables. Then it uses the cache to find the ownership of
> files inside user-specified dirs.
> 
> Building the cache takes less than 10 seconds here in a system with
> 1366 installed packages.
> 
> This is not intended to be a finished program yet, I'm looking forward
> for your constructive commentaries.

There is a tool that does that, qfile from app-portage/portage-utils.
Check the "-o, --orphans        * List orphan files" option.

It's not as straight forward as it could be, as it checks only for
files specified as arguments or read from file.

But you can trivially use it like:
# find /dir/you/want/to/check/for/orphans | qfile -o -f -

Best,
Yuri.

Reply via email to