[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM trying to use db1 on db3 database
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: RPM trying to use db1 on db3 database
- Date: Sat, 2 Jun 2001 11:18:32 -0400
On Fri, Jun 01, 2001 at 03:46:23PM -0700, David Christensen wrote:
> I'm a little confused on the use of db1 vs. db3 with rpm 4.0.2 so please
> bear with me. I've pieced together a Linux system from parts (manually
> copying the minimum files needed from a working RH 6.2 system) and now I'm
> tyring to add rpm support. I'm working with RH7.1 so I have rpm 4.0.2. I
> create a new database like this:
>
> rpm --initdb --root <some root>
>
> and I get the following files:
>
> <some root>/Basenames
> <some root>/Conflictname
> <some root>/Group
> <some root>/Name
> <some root>/Packages
> <some root>/Providename
> <some root>/Requirename
> <some root>/Triggername
>
> That's what should happen (right?). When I reboot to this new Linux I try
> to query the database like this:
>
> rpm -qavv
>
> and I get this output:
>
> D: opening db file /var/lib/rpm/packages.rpm mode 0x0
> D: closing db file /var/lib/rpm/packages.rpm
> error: cannot open Packages inded using db1 - No such file or directory (2)
>
What does
rpm --dbapi 3 -qavv --root <some root>
say? Ditto
rpm --dbapi 1 -qavv
If those both "work", look at
rpm --showrc | grep dbapi
and figger why %_dbapi has the value 1 (check /etc/rpm/macros.db1?)
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]