[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Wrong __dbs deleted



On Wed, 30 Apr 2003, Mike Vanecek wrote:

> > > Tried running --initdb ...
> >
> > Oh dear, you appear to have wiped out your database. You now need to
> > restore it from backups, or remember what packages you had installed
> > (look in /var/log/rpm*) and use rpm --justdb for each package to
> > recreate it. In some cases it is simpler to re-install.
>
> I did a rebuilddb and everything seems to be in the db. I did a rpm -q for all
> the packages I know I installed and they pop right up. I thought that --initd
> created the db and --rebuilddb rebuilt it based on the stored headers?

rpm --initdb creates a clean empty database, and unless they have changed
things recently, overwrites the existing database, including the bits that
rpm --rebuilddb uses to rebuild the database from. It sounds like you have
had a lucky escape.

	Michael Young





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]