Yum Error: database disk image is malformed fix

โ€”

by

in

root@host:~# yum update
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
Setting up Update Process
Error: database disk image is malformed
root@host:~# yum clean all
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
Cleaning repos: *
Cleaning up Everything
root@host:~# mv /var/lib/rpm/__db* /tmp
root@host:~# rpm –rebuilddb