Hacks: find_changed_rpms.py

Sometimes, we might be facing certain problems which we could not find what might have caused it. One of the annoying cause is a broken file somewhere in the filesystem due to some reason.

My practise, is that I regularly run rpm -Va to verify and list out broken or changed files. Then I would reinstall any rpm which I think have broken files. Now that I'm working, and being on rawhide, its rather tedious and time consuming to do this regularly. So I just wrote a python script for helping out with the extracting changed files list and querying which rpm the file belongs to.

Those who interested to use it, you can grab it here: find_changed_rpms.py


Usage: ./find_changed_rpms.py [OPTIONS]

This script will automatically find for packages which
one or more of its files does not match the information
stored in the RPMdb.

-h : show this menu
-v : be verbose

This script excludes packages which only have its config files
changed and packages which its files only does not match the
stored mtime.


NOTE: Its not bugproof!.

If anybody out there have some cool hacks related to Fedora. How about start sharing them now and help Greg build his Fedora weekend hacks catalog.

Comments

Popular posts from this blog

Tee'ing Python subprocess.Popen output

Consolidated community site infrastructure on Plone

Adding simple popup to Plone frontpage