Page 1 of 1

nagios-repo package vs GPG key

Posted: Wed Apr 18, 2018 4:39 pm
As of March 18th we had to update nagios-repo package in order to update NCPA (to address "The GPG keys listed for the "Nagios" repository are already installed but they are not correct for this package.")

After upgrading nagios-repo package from version nagios-repo-7-2.el7.noarch.rpm to nagios-repo-7-3.el7.noarch.rpm we encounter upgrade NCPA errors:
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS"
We came up with this workaround:
# cp -p RPM-GPG-KEY-NAGIOS-V2 RPM-GPG-KEY-NAGIOS
or this one:
# yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/7/nagios ... noarch.rpm

However the most elegant option would be that maintainers of this nagios-repo RPM package would replace the current GPG key file that is most probably marked with
%config(noreplace)
to
%config

These directives are explained on http://people.ds.cam.ac.uk/jw35/docs/rpm_config.html

Best regards, Jørgen van der Meulen

Re: nagios-repo package vs GPG key

Posted: Thu Apr 19, 2018 9:45 am
by scottwilkerson
Thanks.

We hadn't noticed this but am passing on to the maintainers for future nagios repo releases