Re: Wrong __dbs deleted

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 1 May 2003 08:31:12 +0100 (BST), M A Young wrote:

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

As mentioned earlier several times on different lists (without examining the
source code) I don't believe --initdb overwrites an existing database:

# rpm -qa | wc -l
    801
# rpm --initdb
# rpm -qa | wc -l
    801
    
- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+sPyg0iMVcrivHFQRAkX+AKCFimlvHlpRX3pUF2OeJNuvb+jcGgCZAbW5
F3tkbDkB+yuHxUVA9CVaFxg=
=6Yx4
-----END PGP SIGNATURE-----





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux