RPM command hanging

If rpm hangs all the time use the following command to remove it's lock files:

rm -f /var/lib/rpm/__db*

Then perform a database rebuild with:

rpm --rebuilddb

That should to correct things.

Last updated: 16/04/2005