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

On Saturday 19 January 2002 06:43 pm, Wolfgang Pfeiffer wrote:

> > > I get the answer:
> > > D: opening db index
> > > /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages rdonly mode=0x0
> > > D: closed  db index
> > > /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages
> > > error: cannot open Packages index using db3 - No such file or

Hi Wolfgang,
You have a fairly recent version of rpm installed, and I'm wondering if 
it isn't perhaps looking in the wrong place for the redhat rpmdb.

The error your getting is the same on reported if rpmdb-redhat isn't 
installed. I'm guessing that is because rpm can't find the installed 
database, or can't read it, if found.

At least in the version I have here, the --redhatprovides flag tells rpm 
to look at the database in  
/usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat

I think the problem may be with what's contained in that directory.
I don't know if rebuilding that database will fix it or not, but here is 
what looks to be the problem:
On my machine, I have:
$ rpm -q rpm
rpm-4.0.3-1.03
$ rpm -q rpmdb-redhat
rpmdb-redhat-7.1-0.20010408

rpmdb-redhat provides the following files:
$ rpm -ql rpmdb-powertools
/usr/lib/rpmdb/i386-redhat-linux/powertools
/usr/lib/rpmdb/i386-redhat-linux/powertools/Basenames
/usr/lib/rpmdb/i386-redhat-linux/powertools/Conflictname
/usr/lib/rpmdb/i386-redhat-linux/powertools/Group
/usr/lib/rpmdb/i386-redhat-linux/powertools/Name
/usr/lib/rpmdb/i386-redhat-linux/powertools/Packages
/usr/lib/rpmdb/i386-redhat-linux/powertools/Providename
/usr/lib/rpmdb/i386-redhat-linux/powertools/Requirename
/usr/lib/rpmdb/i386-redhat-linux/powertools/Triggername

Looking at the package from 6.2:
$ rpm -qlp rpmdb-redhat-6.2-0.20000308.i386.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat
/usr/lib/rpmdb/i386-redhat-linux/redhat/conflictsindex.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/fileindex.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/groupindex.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/nameindex.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/packages.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/providesindex.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/requiredby.rpm
/usr/lib/rpmdb/i386-redhat-linux/redhat/triggerindex.rpm

The names of the database files are different. Also, in the version I 
have here, I don't see that it is looking at the rpmdb-powertools 
database. Which makes sense, powertools is no longer included in the 
distro.

Updating rpmdb-redhat to a version from a more recent distro would 
probably work.

- -D

- -- 

pgp key:  http://www.tuxfan.homeip.net:8080/pgpkey.txt

- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8ShhEeMAUbzJhSVcRAvlhAJwPaZmsSyBqm1H+T4SMD37B3gF1wQCgqhMu
mrs1JME60OqJdSFrQvqBzRc=
=gM7G
-----END PGP SIGNATURE-----



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

Reply via email to