1

Find files that were not installed by the package manager

view story
linux-howto

http://unix.stackexchange.com – I'd like to get a list of all files in my Gentoo Linux system that were not installed by the package manager (Portage). This is because I want to keep my system as clean as possible, removing all useless files lying around. Let me tell you what I've tried until now. First of all, I generate the list of all files that belong to some package tracked by Portage: equery files "*" | sort | uniq > portage.txt Then I generate the list of all files on my system, except those that I don't care about: find / \( -path /dev -o -path /proc -o -path /sys -o -path /media \ -o -path /mnt -o (HowTos)