Error solve --Error getting repository data for epel, repository not found

The reason given

  System RHEL / CentOS EPEL repository 7.x / 6.x / 5.x is not enabled.

  EPEL on behalf of additional packages Enterprise Linux and distributed online, you can automatically download and install the yum program.

  As long as this option is enabled, the error will be resolved

 

Solution

  • CentOS7
# If you do not need to install wget wget install yum 
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7 .noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm

 

  •  CentOS6
# RHEL/CentOS 6 32-Bit 
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

# RHEL/CentOS 6 64-Bit
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

 

And then if necessary

yum update

 

 

 

       

 

Guess you like

Origin www.cnblogs.com/zhuminghui/p/12102122.html