eFindStaleFiles

The python script eFindStaleFiles.py recursively traverses all directories given to the script for files or directories that are not tracked by portage. The blue output is debug output on stderr.

After downloading you may try the following:

# find stale files under /root
eFindStaleFiles.py /root

# find stale files in the current directory
eFindStaleFiles.py

# find stale files under /usr, compute their size, and write the result in
# /tmp/_usr.txt. After print the result sorted by the file size
eFindStaleFiles.py  /usr/ | xargs du -s | tee /tmp/_usr.txt; sort -n /tmp/_usr.txt

# find stale files in /etc which have been created at least 100 days ago
find `eFindStaleFiles.py /etc/` -ctime +100 -maxdepth 0

The former version of the script did also traverse content of non-tracked directories and it followed symbolic links. The new script, however, fixes this. (It was annoying that the symbol link /usr/lib to, i.e., /usr/lib64 is fully traversed and all its content is reported as untracked.)