%{_hkp_keyserver} in rpm

Kacper Kornet draenog at pld-linux.org
Thu Jun 4 12:56:28 CEST 2015

On Thu, Jun 04, 2015 at 12:46:00PM +0300, Elan Ruusamäe wrote:
> On 04.06.2015 12:19, Kacper Kornet wrote:
> >And the original slow command was:

> >rpm -qp --nodigest --nosignature --qf %{R} google-chrome-stable-43.0.2357.81-1.x86_64.rpm

> >called during building google-chrome
> as i have not encountered this in normal poldek/rpm usage.

> perhaps because i use pld packages only and i have pld key imported?

And does it work for you? I think I have the PLD key imported and:

$ rpm -Kp git-core-2.4.0-1.x86_64.rpm
git-core-2.4.0-1.x86_64.rpm: (SHA1) DSA sha1 md5 NOT_OK

I think most users have been saved by bug in rpm in interpretation of switch
--nosignature. It is interpereted correctly only for modes -K and -V. 
For all other modes it default is not to check signature and option 
--nosignature actually switches it on. Like:

$ time rpm -qp  --qf '%{name} %{vendor}\n' git-core-2.4.0-1.x86_64.rpm
git-core pld
rpm -qp --qf '%{name} %{vendor}\n' git-core-2.4.0-1.x86_64.rpm  0.05s user 0.00s system 92% cpu 0.058 total 

$ time rpm -qp --nosignature --qf '%{name} %{vendor}\n'

time rpm -qp --nosignature --qf '%{name} %{vendor}\n'
error: git-core-2.4.0-1.x86_64.rpm: Header V4 DSA signature: BAD, key ID
error: reading git-core-2.4.0-1.x86_64.rpm manifest, non-printable
characters found
rpm -qp --nosignature --qf '%{name} %{vendor}\n'
git-core-2.4.0-1.x86_64.rpm  0.06s user 0.00s system 0% cpu 2:07.39 total

And the same for rpm -U ...

More information about the pld-devel-en mailing list