rpm command line help needed
David A. Sinck
plug-discuss@lists.plug.phoenix.az.us
Wed, 23 Jan 2002 06:35:49 -0700
I thought -qf was "query: who owns this file"
\_ SMTP quoth George Toft on 1/22/2002 20:04 as having spake thusly:
\_
\_ 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
\_ ________________________________________________
\_ 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