Re: rpm database corrupted, how to recover?

Alexandre Oliva <[email protected]> 12 Nov 2003 20:23:19 -0200
Newsgroups gmane.linux.redhat.rhl.beta
Organization GCC Team, Red Hat
Message-ID <orislpjkfc.fsf__2719.3263326355$1068687301@free.redhat.lsd.ic.unicamp.br>
On Nov 12, 2003, Torrey Hoffman <[email protected]> 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
databases.

-- 
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


--
fedora-test-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/fedora-test-list