Quick FIX: rpmdb: failed: Thread died in Berkeley DB library
Nasty RPMDB error
rpmdb: Thread/process xxxxx/xxxxx failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
The Fix
mv /var/lib/rpm/__* /tmp/
rpm --rebuilddb
Upgrade packages
yum clean all
yum makecache fast
yum upgrade -y
Quick gist
Check before running, I am not responsible for breaking your server/pc
curl https://awsum.co/gists/rpmdbfix.sh | sh