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

Re: RPM database management



On Tue, Aug 27, 2002 at 11:28:05AM +0200, Yannick Patois wrote:
> Hi,
> 
> On Mon, 26 Aug 2002, Jeff Johnson wrote:
> > > > I would like to create a database of every involved RPM that I could then
> > > > ask with questions like:
> > All that's needed is a single line from the rpmdb-redhat specfile, look
> > for --justdb. If there is a tool, it's doing exactly the same thing,
> 
> After playing a bit with that option, I get the following impression:
> - 'justdb' doesnt update the database (?!):
> bash-2.05$ rpm --root /scratch/BuildSpace/tmp --justdb -ivh --nodeps
> /scratch/rpms/rh7.2/done/cvs-1.11.1p1-3.i386.rpm

There are other options you need, including --noscripts and --notriggers.
See the spec file in the rpmdb-redhat src.rpm for the complete list.

> Preparing...                ###########################################
> [100%]
> bash-2.05$ strings /scratch/BuildSpace/tmp/var/lib/rpm/*
> Ä<k=)x
> Ä<k=Éþ
> Ò;k=«w
> Ä<k=*x
> 
> -> Obviously nothing significant had been added to the db.
> 

Try
	rpm -qa --dbpath /scratch/BuildSpace/tmp/var/lib/rpm
instead.

> Another *big* problem I see is also multiple version of the same pkgs:
> will that fit in the DB ?

rpm supports multiple versions, even multiple instances, of packages
installed in the database. Whether that's useful is a different question.

> 
> > There's also rpmcache(8) that does essentially the same thing as
> > --justdb w/o all the bleeping (but necessary) rpm CLI options.
> 
> Sorry, I couldnt find that one (RH7.2).

/usr/lib/rpm/rpmcache is in the rpm-devel-4.1 package, not yet released
for 7x.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





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