Re: RPM tag - how to get RPM signature details like Key ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/15/2011 12:17 PM, George Machitidze wrote:
Hello

I want to list packages by signatures and to include Key ID in queries when
using "rpm -qa --queryformat", but I couldn't get values I need.

Is there a way to get it somehow without parsing "rpm -qia" data?

 From rpm -qi:

Signature   : DSA/SHA1, Mon 03 Oct 2011 07:16:25 PM GET, *Key ID
5326810137017186*

Key ID is not available as such, only as a part of :pgpsig format extension as seen in the Signature line of -qi output. For example to query package name + its RSA signature (if it exists) in "human readable" format you could use:

rpm -qa --qf "%{NAME} %|RSAHEADER?{%{RSAHEADER:pgpsig}}:{(none)}|\n"

See the --info alias in /usr/lib/rpm/rpmpopt* for the gory details how to handle all the possible signature types.

	- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux