Your RPM database may be corrupted. So we need to rebuild the rpm database after deleting all rpm dbs from /var/lib/rpm.
rm /var/lib/rpm/__db.*
rpm –rebuilddb.
/scripts/upcp hanging or rebuilding rpmdb
Your RPM database may be corrupted. So we need to rebuild the rpm database after deleting all rpm dbs from /var/lib/rpm.
rm /var/lib/rpm/__db.*
rpm –rebuilddb.