Devon, --- Devon wrote: > -----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,
I don't think so, see below :) > or can't read it, if found. .. perhaps, yes. > > 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 ... here: rpm-4.0.2-6x > $ rpm -q rpmdb-redhat > rpmdb-redhat-7.1-0.20010408 ... here: rpmdb-redhat-6.2-0.20000308 > > 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. ... yep, you remember the command I posted: $ rpm -q -vv --redhatprovides libcrypto.so.0 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 directory (2) so the command *is* looking for the correct path( ...doesn't it?): indeed I have here (on RedHat 6.2): $ ls /usr/lib/rpmdb/i386-redhat-linux/redhat/ conflictsindex.rpm groupindex.rpm packages.rpm requiredby.rpm fileindex.rpm nameindex.rpm providesindex.rpm triggerindex.rpm and this is the mode these files have: $ ls -l /usr/lib/rpmdb/i386-redhat-linux/redhat/ total 15364 -rw-r--r-- 1 root root 16384 Mar 8 2000 conflictsindex.rpm -rw-r--r-- 1 root root 2609152 Mar 8 2000 fileindex.rpm -rw-r--r-- 1 root root 16384 Mar 8 2000 groupindex.rpm -rw-r--r-- 1 root root 28672 Mar 8 2000 nameindex.rpm -rw-r--r-- 1 root root 12125384 Mar 8 2000 packages.rpm -rw-r--r-- 1 root root 94208 Mar 8 2000 providesindex.rpm -rw-r--r-- 1 root root 794624 Mar 8 2000 requiredby.rpm -rw-r--r-- 1 root root 16384 Mar 8 2000 triggerindex.rpm ... same mode on your 7.1 files? and I just checked '/usr/lib/rpm/rpmpopt-4.0.2': it also says (without understanding this part until the last bit of information it gives) in one part: --------------- [ ... ] rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires [ ... ] ------------------ <Did I forget something? ... All this at about 2:45 in the morning ... I'll need some sleep now ... > Thanks a lot for your efforts, Devon. Bye Wolfgang [ .. snip ... ] -- Wolfgang Pfeiffer http://www.geocities.com/wolfgangpfeiffer __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list