Rebuild Corrupt Yum RPM Database

When installing packages via yum and the database is corrupt, the following message is displayed:

rpmdb: Thread/process 13903/140194607871904 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:

Commands such as “yum clean all” also fail with this message.  To correct, move the RPM DB files to a temporary folder and rebuild the database with these 3 commands: Read more Rebuild Corrupt Yum RPM Database

Mount Windows/Samba Shares with Autofs in CentOS 6/7/8

Samba and Windows that are used on-demand should be mounted with autofs.  The system will mount or remount the share automatically as needed.

  1. Create /etc/smbpasswd to store the credentials for the user accessing the share
    domain=domain.int
    username=storage
    password=p@ssw0rd

    Read more Mount Windows/Samba Shares with Autofs in CentOS 6/7/8