I'm looking for a utility that scans for corrupt installations. Basically, I install an rpm/tarball but the required dependencies are not there. I test to see which ones I need and sometimes have extra dependencies left over lying in the filesystem. How can I scan for these and remove ones not in use by any program?