[wplug] non-RPM file scan
Brian Sammon
brians+ at cs.cmu.edu
Sat Aug 9 23:27:44 EDT 2003
> Does anyone know of a program that will search a directory for files that
> are not in the RPM database?
> (i.e. files that were not installed from an RPM, but by some other means)
Well, I decided to construct a find command that does this. It does a rpm
query for each file and then lists the ones it couldn't find. It's not
quite as slow as I feared; it took 30 seconds or so to do /usr/lib, not
including the subdirectories. It's slightly ugly:
find . -maxdepth 1 -type f -not -exec rpm --quiet -q -f '{}' ';' -print
More information about the wplug
mailing list