I'm using a local mirror of the epel repo via a repofile:
Code: Select all
[epel]
gpgcheck=1
gpgkey=/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
name=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=local-mirror/epel/$releasever/Everything/$basearch/
enabled=1
Code: Select all
# yum install htop
[...]
warning: /var/cache/dnf/epel-a2f718eff71c46d7/packages/htop-3.0.5-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]:
Code: Select all
# rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Code: Select all
# rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
gpg-pubkey-8483c65d-5ccc5b19 --> gpg(CentOS (CentOS Official Signing Key) <security@centos.org>)
Thanks a lot in advance!