Backup the database used by rpm
cd /var/lib/rpm/
mv __db.* ~/
rebuild the database
rpm -vv --rebuilddb
If all goes well
remove _db.*
rm -f ~/__db.*
Backup the database used by rpm
cd /var/lib/rpm/
mv __db.* ~/
rebuild the database
rpm -vv --rebuilddb
If all goes well
remove _db.*
rm -f ~/__db.*