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

RE: --aid option



Thanks Jeff-

	I just installed rpmdb-redhat. Inspection of the package suggests that it is a copy of /var/lib/rpm from a "kitchen sink" installation. Is that true?

	I'm trying to set up a repository for an internal distro, where folks can use the --aid option to install packages. It sounds like if I package up /var/lib/rpm from a reference system, I'll have the 'rpmdb-internal' package I need. Does that sound reasonable?

-Aaron

> -----Original Message-----
> From: Jeff Johnson [mailto:jbj@redhat.com]
> Sent: Wednesday, June 25, 2003 9:07 AM
> To: rpm-list@redhat.com
> Subject: Re: --aid option
> 
> 
> On Wed, Jun 25, 2003 at 09:46:56AM -0600, Chris Ricker wrote:
> > On Wed, 25 Jun 2003, Aaron Hanson wrote:
> > 
> > > Hi All-
> > >  
> > >     The rpm manual description of this install option 
> (--aid) is very
> > >     alluring; but I can't get it to work. I think it is 
> intended to
> > >     provide something like "Install package X and any 
> other packages that
> > >     X requires". But how does one specify the 'pool' of 
> other packages?
> > >     "rpm -i --aid X.rpm" definitely does not work...
> > 
> > I think you're supposed to be able to define the macro
> > 
> > %_solve_pkgsdir /path/to/pool/of/packages
> > 
> > in ~root/.rpmmacros
> > 
> > for it.
> > 
> > In practice, that doesn't seem to work. But
> > 
> > # cd /path/to/pool/of/packages
> > # rpm -ivh foo.rpm
> 
> I have package universes mounted as /distroversion/arch (e.g. 
> /8.0/i386)
> and use the following (for /8.0/i386) in /etc/rpm/macros:
> 
> %_solve_dbpath          
> /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat
> %_solve_pkgsdir         /8.0/i386/
> %_solve_name_fmt        
> %{?_solve_pkgsdir}%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
> 
> 73 de Jeff
> 
> -- 
> Jeff Johnson	ARS N3NPQ
> jbj@redhat.com (jbj@jbj.org)
> Chapel Hill, NC
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
> 




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