rpm database corrupted, how to recover?

Alexandre Oliva aoliva at redhat.com
Wed Nov 12 22:23:19 UTC 2003

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

> So I moved /var/lib/rpm/Packages to /var/lib/rpm/Packages.corrupt

Don't do this.  It's what --rebuilddb would use to rebuild the

Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

More information about the fedora-list mailing list