I have a corrupt FC6 rpmdb after a timed-out yum update; rpm --rebuilddb fails

Kenneth Wolcott kennethwolcott at gmail.com
Tue Jan 23 05:03:14 UTC 2007


Hi Jim;

  The sequence:
    1> delete the rpm db
    2> rebuild rpm db
    3> yum update
  took almost ten hours, but it worked!

  The key was to use -y on yum so it wouldn't time out on me when I gave up
watching it take forever...

Thanks folks,
Ken

On 1/22/07, Jim Cornette <fc-cornette at insight.rr.com> wrote:
>
> > Kenneth Wolcott wrote:
> >> Hi;
> >>
> >>   I deleted the rpm db files.
> >>
> >>   I then ran yum update again.
> >>
> >>   Seems to go fine for quite awhile and then...
> >
> >
>
> It sounds like you probably have entries within your rpm database that
> are leftovers from the yum blunt exit. You probably need to remove the
> /var/lib/rpm/__db* files and run rpm --rebuilddb to get the database in
> a usable state. Afterwards, you will have to find the packages which are
> multi-versions on your system and clean up the messed up entries for the
> files. Hopefully the botched update did not include a lot of packages so
> the mess would not be extreme.
> The easiest way is to run rpm -qa and sort the output to locate packages
> which might show two or more entries. Next you would want to verify the
> two packages and find out which one verifies and which one shows
> problems. Then you would want to remove only the database entry for the
> version that does not come back clean with the --justdb option to rpm.
>
> After the mess is cleaned up you might be able to update the system
> successfully again with yum. As you mentioned your system speed and
> other options, you might be pressing the edge too much with trying to
> use resource hungry programs like yum. I think 333 MHz would work but it
> would be extremely slow.
>
> Jim
>
> --
> The amount of weight an evangelist carries with the almighty is measured
> in billigrahams.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070122/833dbe19/attachment-0001.htm>


More information about the fedora-list mailing list