Yum oddness

Sam Sharpe lists.redhat at samsharpe.net
Wed Jul 21 20:32:56 UTC 2010

On 21 July 2010 21:13, Patrick O'Callaghan <pocallaghan at gmail.com> wrote:
> On Thu, 2010-07-22 at 03:49 +0900, Mamoru Tasaka wrote:
>> > No epoch is equivalent to epoch zero. That's why it wasn't
>> displayed.
>> To be clear:
>> By default "$ rpm -q" ($ rpm -qi) does not show epoch information even
>> if the rpm actually has epoch.
> That might be worth revising. The rpm queryformat expressions are not
> well documented on the man page (you have to know what the various tag
> headers are called for one thing, and it's not clear where to discover
> that short of reading the RPM book or the source).

The last paragraph of the section of `man rpm` dealing with
--queryformat says the following:

       For example, to print only the names of the packages queried, you could
       use %{NAME} as the format string.  To print the packages name and  dis-
       tribution information in two columns, you could use %-30{NAME}%{DISTRI-
       BUTION}.  rpm will print a list of all of the tags it knows about  when
       it is invoked with the --querytags argument.

You can therefore list all the tags as follows:

[sam at samlap ~ ]$ rpm --querytags

However it's left as an exercise for the reader to discover what the
non-obvious query tags actually mean.


More information about the users mailing list