Rebuilding corrupted RPM database on a CentOS/RHEL

Originally published at: https://www.cyberciti.biz/tips/rebuilding-corrupted-rpm-database.html

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