Rebuilding corrupted RPM database on a CentOS/RHEL

Originally published at:

One of our clients reported that he is getting an error and RPM database is corrupted. He is using Red Hat Enterprise Linux. Sometime it is possible to fix RPM database errors. I am surprised that many Linux admins do not make back up of RPM DB (/var/lib/rpm). Anyways if you ever messed up with…

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki