yum remove docker
error: rpmdb: BDB0113 Thread/process 14536/140712790841152 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 – (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
[root@localhost bin]# yum remove
error: rpmdb: BDB0113 Thread/process 14536/140712790841152 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 – (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
[root@localhost bin]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 11G 40G 21% /
devtmpfs 851M 0 851M 0% /dev
tmpfs 864M 0 864M 0% /dev/shm
tmpfs 864M 9.2M 854M 2% /run
tmpfs 864M 0 864M 0% /sys/fs/cgroup
/dev/sda2 1014M 139M 876M 14% /boot
/dev/sda1 200M 12M 189M 6% /boot/efi
/dev/mapper/centos-home 411G 33M 411G 1% /home
tmpfs 173M 0 173M 0% /run/user/0
[root@localhost bin]# mv /var/lib/rpm
rpm/ rpm-state/
[root@localhost bin]# mv /var/lib/rpm/
Basenames __db.001 __db.003 Dirnames Installtid Obsoletename Providename .rpm.lock Sigmd5
Conflictname __db.002 .dbenv.lock Group Name Packages Requirename Sha1header Triggername
[root@localhost bin]# mv /var/lib/rpm/__db.00
__db.001 __db.002 __db.003
[root@localhost bin]# mv /var/lib/rpm/__db.00
__db.001 __db.002 __db.003
[root@localhost bin]# mv /var/lib/rpm/__db.00* /tmp/ && yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up list of fastest mirrors
[root@localhost bin]# yum remove docker
Loaded plugins: fastestmirror
No Match for argument: docker
No Packages marked for removal
[root@localhost bin]#