[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpmorg-list
Subject:    RPM tag - how to get RPM signature details like Key ID
From:       giomac () gmail ! com (George Machitidze)
Date:       2011-12-16 7:26:47
Message-ID: CA+nv05gCgqo_JqOD=ChnA5sv1VDONbJSTJE4r1d7XXUDdEpxGQ () mail ! gmail ! com
[Download RAW message or body]

Great! Thanks! Got it!

rpm -qa --queryformat
'%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\'


Best regards,
George Machitidze


On Thu, Dec 15, 2011 at 5:18 PM, Panu Matilainen
<pmatilai at laiskiainen.org>wrote:

> 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 at lists.rpm.org
> http://lists.rpm.org/mailman/**listinfo/rpm-list<http://lists.rpm.org/mailman/listinfo/rpm-list>
>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20111216/1b7c9043/attachment.html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic