import the Rocky Linux GPG key manually

This commit is contained in:
Pratham Patel 2023-10-05 13:50:02 +05:30
parent edac37608b
commit d6003ef0f7
No known key found for this signature in database

View File

@ -4,6 +4,9 @@ set -x
MACHINE_ARCH="$(uname -m)" MACHINE_ARCH="$(uname -m)"
DNF_RELEASEVER="$(dnf config-manager --dump-variables | grep 'releasever' | awk '{print $3}')" DNF_RELEASEVER="$(dnf config-manager --dump-variables | grep 'releasever' | awk '{print $3}')"
# import the key manually, since it does not get automatically get imported...
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
# Setup networking temporarily # Setup networking temporarily
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf [ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf