RPM question

Robert Kennedy (kennedy@cdfsga.fnal.gov)
Tue, 24 Nov 1998 09:07:39 -0600 (CST)

Hello,

I received the following question from Chris Green. I would like to see if we
can find an answer locally before forwarding this to RedHat Support.

Thanks,
Rob K.

------------------------------------------

Date: Mon, 23 Nov 1998 11:13:50 -0600 (EST)
From: Chris Green <greenc@fnal.gov>
Subject: Query regarding rpm --queryformat and tags returning multiple words
To: kennedy@fnal.gov
Message-id: <Pine.LNX.4.05.9811231036050.245-100000@purpc03.fnal.gov>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
X-Authentication-warning: purpc03.fnal.gov: greenc owned process doing -bs

Hi,

I've been trying to get rpm to give me a formatted list of dependencies
for a list of packages. I've been trying something like:

rpm -q -a | grep ghost | xargs rpm -q --queryformat \
"%-30{NAME} %{REQUIRENAME}\n"

but this only lists the first dependency in each case. Can you tell me how
to specify in the format how to deal with tags returning multiple words,
as I can't seem to find appropriate instructions in the man page?

Thanks,
Chris.

- --
Chris Green. HEP, Purdue University. CDF SVXII project.
Based at Fermilab. MAIL greenc@fnal.gov; PHONE (630) 840-2308

------- End of Forwarded Message