4

Running yum search something I get:

Error: database disk image is malformed

How to fix?

  • Did you have any prior problems with the database? Did you recently upgrade rpm or yum? Is your RAM or hard disk failing (disk: check the kernel logs; RAM: you'll generally experience other data corruption and crashes)? Did your machine or the utility recently crash in the middle of an rpm or yum operation? Is the disk full or has it been full recently? – Gilles Dec 10 '10 at 21:14
  • @Gilles Probably because I kept on killing yum when it was doing it's package metadata downloads. Also, I'm running this on a VM, so maybe yum got confused with the messed-up dates. – Tshepang Dec 11 '10 at 8:37
6

Just try:

su -c'yum clean all'

and enter your root pw.

  • 1
    Als, you can use yum clean dbcache. – wener Oct 20 '14 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.