I'm contemplating writing a script that does this:
- Goes through each file in /usr/lib
- Does a
dpkg -s
search on each file. - Reports a list of "orphan" files not belonging to any .deb package.
The idea is that over time, I've installed a lot of make install
software and I'd like to get a list of leftover files from manually installed software I've since deleted.
I'll warn you now: it's slow.
You can run the following command
that compare the list of files in
/usr/lib
with the list of files present in at least a file in/var/lib/dpkg/info/<NAME>.list
(the files used bydpkg -S
). The-v1
option would report files present in the first list but not in the second one.On my machine this difference list gives more than 5000 hits, so I doubt it could be of any help.