query formats with rpm

Joel Hammer Joel
Mon May 17 11:28:35 PDT 2004


Not exactly.
The man page says you can use query tags to get output of various things,
formatted nicely. 
rpm --querytags shows all the tags you can get output for. But, when I
try what the man page suggests, the query tags don't do anything.
Joel

On Sun, Mar 17, 2002 at 09:47:30PM -0500, David A. Bandel wrote:
> On Sun, 17 Mar 2002 19:37:39 -0500
> begin  Joel Hammer <Joel at hammershome.com> spewed forth:
> 
> > Could someone give me an example of using query formats with rpm?
> > The man page says -qf followed by the format tag, like %{NAME} should do
> > something useful, but I can't get it to work, at least on uninstalled
> > packages.
> 
> rpm -qa  -- this will show all installed packages, best used with grep.
> 
> rpm -qil <package_name> will show information on the installed package and
> list the installed files
> 
> rpm -qif <filename> will show the package associated with a particular
> file installed on your system
> 
> rpm -qpil <package.i386.rpm> will show you what's in a particular
> not-yet-installed package.
> 
> That answer your questions?
> 
> David A. Bandel
> -- 
> Focus on the dream, not the competition.
> 		-- Nemesis Racing Team motto
> Internet (H323) phone: 206.28.187.30
> _______________________________________________
> Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



More information about the Linux-users mailing list