old blog,

Hacks: find_changed_rpms.py

Izhar Firdaus Izhar Firdaus Follow Support Feb 28, 2008 · 1 min read
Hacks: find_changed_rpms.py
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
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.
Written by Izhar Firdaus Follow Support
I'm a system architect, data engineer and developer advocate with passion in Free / Open Source software, entrepreneurship, community building, education and martial art. I take enjoyment in bridging and bringing together different FOSS technologies to help businesses and organizations utilize IT infrastructure to aid and optimize their business and organizational process.

Tee'ing Python subprocess.Popen output

A little hack for python coders out there who wanted to have a functionality similar to the unix's tee command for redirecting output...

In old blog, Feb 28, 2008

« Previous Post

Fedora in NASA?!

Jack Aboutboul wrote a great post about Fedora and RHEL in NASA.Read it here: Fedora on Final FrountierGreat to know this!.- Izhar Fi...

In old blog, Feb 28, 2008

Next Post »