redhat yum install - GPG key retrieval failed

Solution 1:

Try to import manually

# rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6

Solution 2:

You could also simply install with the command yum install --nogpgcheck {packagename}

Solution 3:

You have to install the epel-release package first in order to get GPG-Keys installed:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm