My RPM database is shot, neither rpm or yum works. Supposedly "rpm –rebuilddb" will fix it, but it doesn't in my case. This server has three sister servers that are basically identical, and have working RPM databases. I tried copying /var/lib/rpm/ from working server to the sick one, but that didn't fix it. Any ideas of how I can use good server's rpm to fix the sick one?
Linux – CentOS RPM database trashed, “rpm –rebuilddb” won’t fix, can I recover using /var/lib/rpm/ from a 2nd, identical server
centoslinuxrpm
Best Answer
Try removing /var/lib/rpm/__db.* before doing an rpm --rebuilddb.