I mentioned in an earlier
post that I was working on a cruft finding tool for an RPM system.
Mark asked me about it today, and I remembered that I had things in order, I just had to roll it up into something pretty.
I'm calling it "crufty" for lack of a better name. I'm open to suggestions. You can download it here:
http://people.redhat.com/bressers/crufty/
This tool will basically take a look at your system, tell you what owns a particular file (if anything), and let you know if any of the rpm checks fail (just like rpm -V). Right now it does little more than rpm -V, but the code is very small, so adding functionality will be simple. Some of the source is a bit homely and needs some attention. I figured it's better to throw this over the fence rather than let it fester on my disk for a few more weeks. I've been busy with some other projects lately so I haven't had much time to work on this.
It's VERY slow right now. I have zero optimization, so if you run it, don't expect it to run quickly. Also, if two packages claim to own one file or directory, the tool gets confused.
Here's some example output where I have a kernel module not owned by RPM, and I've purposely changed the group ownership of a different module. If you run it without -o it spews a lot of worthless garbage.
./crufty -o /lib/modules/`uname -r`/kernel/drivers/usb/media/
groupname fails in /lib/modules/2.6.13-1.1526_FC4/kernel/drivers/usb/media/vicam.ko
RPM says root; filesystem says bress
/lib/modules/2.6.13-1.1526_FC4/kernel/drivers/usb/media/spca5xx.ko IS NOT PWND!
Update:
I just spoke with
skvidal and I agree that a tool such as this would be a great fit as a yum utility. I'll see about getting it included.