fix corrupted RPM database

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

rpm –rebuilddb
rpmdb_verify Packages

OR:

cp -v Packages Packages-BAKUP
db_dump Packages-BAKUP | db_load Packages
rpm -qa
rpm –rebuilddb

Leave a Reply

Your email address will not be published. Required fields are marked *