query formats with rpm

David A. Bandel david
Mon May 17 11:28:35 PDT 2004


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



More information about the Linux-users mailing list