Friday, April 11, 2003

Red Hat RPM database hosed

Sometimes when I ^C an rpm command the database is locked and
unusable. disser and randyh on our corporate irc suggested this:

First try this:


rpm --rebuilddb


If that doesn't work, try this:


kill -9 -c rpm
rm -f /var/lib/rpm/__db.00*
rpm --rebuilddb



I've been pretending that I'm running Windows and just reboot ;-)