Thursday, April 28, 2022

[SOLVED] How do I solve the error Public key for jenkins-2.238-1.1.noarch.rpm is not installed when I run yum update for jenkins installation for the AWS EC2

Issue

Getting the error attached when I yum update my aws ec2

Downloading packages: warning: /var/cache/yum/x86_64/2/jenkins/packages/jenkins-2.238-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 45f2c3d5: NOKEY

Public key for jenkins-2.238-1.1.noarch.rpm is not installed


Solution

You can try installing its key manually:

sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

or

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

as shown in official jenkins website.



Answered By - Marcin
Answer Checked By - Robin (WPSolving Admin)