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

On Fri, 7 Mar 2003 09:23:45 -0600, Ed Wilts wrote:

> > I am sure that this is self inflicted.
> > I did an upgrade to RH 8.0 from 7.3.
> > 
> > I had many problems with RPM, and seemed to have them
> > resolved them with the help of this list.
> > 
> > Now, for some reason my RPM database is gone.

I assume you made a typo and instead of

  rm -f /var/lib/rpm/__*
  
removed files /var/lib/rpm/* or something like that.

> > When I do rpm -qa all I see is the rpm packages.
> > 
> > rpm --rebuild takes all of one second to complete.
> > rpm --initdb does not help.
> 
> If you did an --initdb, the database really is gone now if it wasn't
> before.  That's the purpose of initdb.  man rpm would have told you
> that.  

So far, my experience differs:

  # pwd
  /var/lib/rpm
  # ll | wc -l
       16
  # du
  31006
  # rpm -qa | wc -l
      801
  # rpm --initdb
  # rpm -qa | wc -l
      801

IMO, rpm --initdb is smart enough to not kill an existing database.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+aN0b0iMVcrivHFQRArvPAJ90IXyARiDvPySD38jxrNuFYA51MACfRR28
d20qMhBtEGdQSRKHBGhBND0=
=QgXK
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to