Fix a Corrupted rpm Database

July 10th, 2008

During my system update yesterday yum would fail with an error containing this text over and over.

rpmdb: PANIC: fatal region error detected; run recovery

My rpm database was somehow corrupted (it’s the first time it’s ever happened to me in 3 years as a Fedora user) but at least the fix is pretty simple, all commands need to be run as root.

# cd /var/lib/rpm
# rm __db.00*
# rpm --rebuilddb
# yum clean all

Leave a comment