RPM Community Forums

Mailing List Message of <rpm-devel>

Slow rpm queries because of HKP pubkey retrieval

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 12 Nov 2007 - 20:24:31 CET
Message-Id: <F31AB9C1-976A-40C1-A592-4A115310A74F@mac.com>
This issue trips me up all the time.

rpm-5.0 (as currently in CVS) enables pubkey retrieval using HKP.

Which means that even simple commands like "rpm -qa"
will be subject to network timeouts while an automated
pubkey retrieval is undertaken.

Note that the behavior is improved in rpm-5.0 on linux because of
"negative result" caching using keyutils, but I'll leave that for
the newer! better! bestest! feature hype with the rpm-5.0 release.

Meanwhile, do this to disable HKP pubkey retrieval:

     echo "%_hkp_keyserver %{nil}" >> /etc/rpm/macros

The other way to avoid network timeouts is to ensure that all  
necessary pubkeys
are imported using --import.

hth

73 de Jeff
Received on Mon Nov 12 20:24:42 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.