Sample Header Ad - 728x90

How to automatically accept epel gpg key

19 votes
4 answers
45513 views
The very first time that I install a package from epel, I am prompted if I want to import a GPG key. Notice how there are 2 'Is this ok' prompts when installing redis? [root@us-devops-build02 yum.repos.d]# yum install redis Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile .. truncated for readability Total download size: 213 k Installed size: 668 k Is this ok [y/N]: y Downloading Packages: redis-2.4.10-1.el6.x86_64.rpm | 213 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Retrieving key from http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 Importing GPG key 0x0608B895: Userid: "EPEL (6) " From : http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 Is this ok [y/N]: y This causes puppet to fail on freshly-provisioned machines, unless I ssh in to the machine first and manually accept the installation of this key. 1. Why does epel need a key to be downloaded on the first installation of a package? 2. How can I automatically install this key on my images so puppet won't fail?
Asked by spuder (18573 rep)
May 30, 2014, 06:45 PM
Last activity: Aug 13, 2024, 01:05 PM