Corrupt RPMDB and recovery

I tried to install some xml related rpms on my Fedora, so checked yum list to see what xml rpms are installed. But the system gave me the below error.

I inititally thought it was some issue with yum and its cache, so tried yum clean. That did not work!.

Taking a closer look, it sounded like rpm db is corrupted.

Deleted the __db* files and did a “rpm –rebuilddb”. It worked perfectly and I was able to do rpm and yum commands.

3 thoughts on “Corrupt RPMDB and recovery

  1. Hi I was having the same problem I dont know how . This worked and solved my problem thank you so much. I hope someday I can understand this OS like you do! Thanks again!

Leave a Reply