Don't understand german? Read or subscribe to my english-only feed.

Corrupt /var/lib/rpm/Packages?

A RedHat 9 server had problems with its rpm database. Running strace showed that it’s hanging when accessing /var/lib/rpm/Packages (a Berkeley DB, wondering?). No rpm actions were possible anymore. Solution:

# cd /var/lib
# cp -a rpm rpm.backup
# rm -f /var/lib/rpm/__db*
# rpm -vv --rebuilddb

One Response to “Corrupt /var/lib/rpm/Packages?”

  1. mp Says:

    Oh yeah, how well I still remember this bug! RedHat and also Fedora suck donkey balls.