rpm database corrupted, how to recover?

Doncho N. Gunchev mr700 at globalnet.bg
Thu Nov 13 15:02:59 UTC 2003


On Thursday 13 November 2003 01:37, Torrey Hoffman wrote:
> On Wed, 2003-11-12 at 14:23, Alexandre Oliva wrote:
> > On Nov 12, 2003, Torrey Hoffman <thoffman at arnor.net> wrote:
> > > While installing some rpms from FreshRPMs.net on my system, rpm
> > > segfaulted.  It seems to have corrupted the database in the process,
> > > and now all rpm commands hang.
> >
> > rm -f /var/lib/rpm/__db*
> > rpm --rebuilddb
>
> Thanks very much, that worked.  Can I suggest that rpm --rebuilddb be
> changed to do that automatically, so it doesn't just hang in this
> situation?
>
> Thanks again for the quick response.
btw: In most cases I only had to 'rm -f /var/lib/rpm/__db*'

No lock so far with Fedora for me ;) some segfaults with
rpmbuild, but no other problems... still testing it.

-- 
Regards,
  Doncho N. Gunchev





More information about the fedora-test-list mailing list