Yum update problems with public keys

Issues related to applications and software problems
Post Reply
rstorch01
Posts: 1
Joined: 2023/01/04 19:20:25

Yum update problems with public keys

Post by rstorch01 » 2023/01/05 12:48:07

How do I get past update problems where there is a public key missing. Here is an example:

warning: /var/cache/yum/x86_64/7/prod-centos7-scl/packages/python27-python-2.7.18-4.el7.x86_64.rpm: Header V4 RSA/SHA256 Signatu, key ID f2exxxx: NOKEY

Public key for python27-python-devel-2.7.18-4.el7.x86_64.rpm is not installed

I see this frequently but am not sure how to get or generate the keys.

User avatar
TrevorH
Site Admin
Posts: 33232
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum update problems with public keys

Post by TrevorH » 2023/01/05 13:39:33

I suspect you have rolled your own repo file for this and have missed the key line from it. The repo file that we ship contains

Code: Select all

[centos-sclo-rh]
name=CentOS-7 - SCLo rh
#baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/
mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
and the gpgkey itself is shipped as part of the 'centos-release-scl-rh' and/or 'centos-release-scl' packages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply