Re: Lost my rpm data base. How can I get it back?

Subject: Re: Lost my rpm data base. How can I get it back?
From: Hollis R Blanchard (
Date: Wed Dec 20 2000 - 12:35:02 MST

On Wed, 20 Dec 2000, Adam wrote:

> >On Wed, 20 Dec 2000, Adam wrote:
> >
> >> I updated the latest rpm packages and when I did it wiped out the
> >> listing. All that is in the listing are a package I had installed
> >> after updating rpm. I initdb and the other one and they both did not
> >> do any thing.
> >
> >To upgrade to rpm4 you must first install rpm4, then *immediately* 'rpm
> >--rebuild'. If you did not do this I know of no way to recover your
> >database.
> >
> >To upgrade to rpm-3.0.5 (which can read rpm4 packages), you simply 'yup
> >update rpm' and no further steps should be necessary.
> Since I did not immediately rpm -rebuild can I copy the database from
> a backup? If so where can I find where the database is hidden?

The database is (was) in /var/lib/rpm. Restoring from a backup is a good
plan... I'm assuming you have rpm4 installed, so be sure to rebuilddb
right after you restore. I would delete *everything* in /var/lib/rpm, then
restore from backup so rpm4 doesn't get confused.

I should note I don't have any special experience restoring lost rpm db's;
I'm just telling you what I would do in the situation (which may or may
not be correct :).


This archive was generated by hypermail 2a24 : Wed Dec 20 2000 - 12:34:51 MST