RPM Database Corruption

Sam Varshavchik mrsam at courier-mta.com
Thu Feb 22 23:39:22 UTC 2007


chris at idlelion.net writes:

> Lesson learned: *NEVER* kill a yum update, no matter how long it takes.

Come and join the party we're having in another thread.

> With that out of the way, how SHOULD I have proceeded after trashing an 
> FC5 or FC6 system that had the database so corrupt that yum and rpm 
> couldn't run?

Although the rpm database is known to get wonky from times, winding it up in 
an unusable state is very rare.  It only really happens when corruption and 
various cruft has accumulated, slowly, over some time, and your final 
"event" pushed things over the edge, over the point of no return.

Manually rm-ing all the __db* files in /var/lib/rpm, and then running "rpm 
--rebuilddb" usually manages to repair or minimize the damage, maybe about 
99% of the time.  It's the remaining 1% of the time that puts you into a 
real pickle.

> (What I eventually did was re-install Fedora.)

Been there, done that too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070222/923550df/attachment-0001.sig>


More information about the fedora-list mailing list