Home » » Fix corrupted RPM database on CentOS 5 / Redhat enterprise Linux 5 / Fedora 7

Fix corrupted RPM database on CentOS 5 / Redhat enterprise Linux 5 / Fedora 7

Written By 1 on Saturday, May 21, 2011 | 8:42 AM

If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:

Command to rebuild rpm database

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

0 Comment:

Post a Comment