rpm command line help needed

George Toft plug-discuss@lists.plug.phoenix.az.us
Tue, 22 Jan 2002 20:04:50 -0500


Oh, silly me - I was trying 
rpm  -qa -qf "%{NAME}\n"
which did not work.  The man page says -qf and --queryformat are 
equivelant.  Line 183 of the man page:
You may specify the format that package information should be 
printed in. To do this,  you  use  the  [--queryformat|-qf]
option, followed by the format string.

This:
rpm  -qa --queryformat "%{NAME}\n"
works perfectly.  Obviously --queryformat != -qf

And I thought it was me.

Thanks for the clue!

George



"David A. Sinck" wrote:
> 
> See the query format in the man page
> 
> rpm --queryformat "%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n"  -qa
> 
> is part of one of my aliases; I'm guessing if you leave of VERSION,
> RELEASE, and ARCH you'll be in downtown.
> 
> David
> 
> \_ SMTP quoth George Toft on 1/21/2002 23:59 as having spake thusly:
> \_
> \_ Yes, I spent an hour in the man page and typing, and I got
> \_ nowhere.
> \_
> \_ What I want is a list of packages installed without
> \_ version numbers - like rpm -qa.
> \_
> \_ I know it has to be easy, but that man page is not.
> \_
> \_ George
> \_ ________________________________________________
> \_ See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> \_
> \_ PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> \_ http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss