Yum-and-RPM---Red-Hat,-Centosถ้าหากเจอ error “Error: database disk image is malformed” ในขณะที่รันคำสั่ง yum เพื่อทำการ install หรือ update package ดังตัวอย่างด้านล่าง

[shell]
[[email protected] ~]# yum install ruby
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror1.ku.ac.th
* epel: mirror1.ku.ac.th
* extras: mirror1.ku.ac.th
* updates: mirror1.ku.ac.th
Error: database disk image is malformed
[/shell]

การแก้ไขสามารถทำได้โดยรันคำสั่ง

[shell]
[[email protected] ~]# yum clean dbcache
[/shell]
หรือ

[shell]
[[email protected] ~]# yum clean all
[/shell]