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

Re: rpm -qp --queryformat "%{defaultprefix}\n" perl.rpm



On Mon, Dec 03, 2001 at 02:29:51PM -0000, Peter Gibbons-BU wrote:
> hi-there,
> 
> i 'm tring to find out the default installation prefix of a packaage
> perl.rpm.  I have  read the example at rpm.org help docs and know that this
> is possible.  However, when i use the example i get an error:
> 
> rpm -qp --queryformat "%{defaultprefix}\n" perl.rpm
> 
> error: incorrect format - unknown tag
> 
> what should my command read?

bash$ rpm --querytags | grep -i prefix
PREFIXES
INSTPREFIXES
INSTALLPREFIX
bash$ rpm -qp --queryformat "[%{prefixes}\n]" perl.rpm

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