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

Re: rpm --topdir mytopdir



On Sun, Sep 03, 2000 at 08:19:43PM +0200, Giulio Orsero wrote:
> I wanted to be able to specify --topdir on the command line, so I looked
> at /usr/lib/rpm/rpmpopt* and, copying the predefined aliases, I added a
> new one
> 
> rpm alias --topdir --define '_topdir !#:+'
> 
> Now I can do:
> $ rpm --topdir abcd --eval %_topdir
> abcd
> $
> 
> The problems are:
> 1) Is doing this ok, or there are some side-effects that may not be
> visible at first sight? (Since all this stuff is not documented
> extensively I'm not sure to have done it the right way)

Adding a per-system popt alias should be done in /etc/popt. Configuring
using the CLI should be no different than configuring topdir using
a macro ...

> 2) I'd prefer to add the alias to a "personal" file, like .rpmmacros for
> macros. Is this possible? Tried .rpmpopt with no success.
> 

... which can be done in ~/.rpmmacros if you desire:
	%_topdir	abcd

There is no way to add per-user popt aliases ala ~/.rpmpopt.

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] []