How To Fix “Error: database disk image is malformed” On CentOS / Fedora

Today I have been trying to update my CentOS 6.5 virtual machine using command “yum update”.

# yum update

Sample output:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * remi:
 * remi-php55:
 * rpmforge:
 * rpmfusion-free-updates:
 * rpmfusion-nonfree-updates:
 * updates:
Error: database disk image is malformed

I got a weird error “Error: database disk image is malformed” and my system didn’t get updated.

How do I solve this error?

It was very simple. After a couple of hours hunting for a solution, I got a working solution from Fedora Forums.

To get rid of this above error, enter the following command From Terminal:

# yum clean dbcache

results matching ""

    No results matching ""