In RedHat RHEL and other RPM based Linux distributions such as CentOS, openSUSE, Fedora and more, the RPM database is located under the /var/lib/rpm/ directory.
Sometimes incomplete previous rpm or yum transactions, removal of certain packages or some other reasons result in corruption of RPM database. If the RPM database gets corrupted, any rpm and yum commands wont run successfully and you encounter errors while updating packages on your system via YUM package manager. This requires rebuilding of the RPM database.
(Note : The following operation requires root privileges, so kindly run as root user or as sudo)
Continue reading “RedHat (RHEL) – Rebuild Corrupted RPM Database – db5 error(-30973)”