Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tech:linux:redhat_epel [2015/03/10 06:51]
tech:linux:redhat_epel [2015/03/10 06:51] (current)
Line 1: Line 1:
 +====== How to Enable EPEL Repository for RHEL ======
 +===== Resources =====
 +  * [[http://​www.tecmint.com/​how-to-enable-epel-repository-for-rhel-centos-6-5/​|How to Enable EPEL Repository for RHEL/CentOS 7.x/​6.x/​5.x]]
 +  * [[https://​fedoraproject.org/​wiki/​EPEL|EPEL - FedoraProject]]
 +  * [[http://​dl.fedoraproject.org/​pub/​epel/​6Server/​x86_64/​|Index of /​pub/​epel/​6Server/​x86_64]]
 +  * [[http://​www.cyberciti.biz/​faq/​centos-redhat-fedora-linux-remote-yum-repo-configuration/​|CentOS / RHEL: Delete Old Yum Repositories and Configuration Files]]
 +
 +===== Steps =====
 +<code bash>
 +wget https://​dl.fedoraproject.org/​pub/​epel/​RPM-GPG-KEY-EPEL-6 ​  
 +wget http://​mirror.us.leaseweb.net/​epel/​6/​i386/​epel-release-6-8.noarch.rpm
 +cp RPM-GPG-KEY-EPEL-6 /​etc/​pki/​rpm-gpg/​
 +rpm -ivh epel-release-6-8.noarch.rpm
 +yum repolist
 +</​code>​
 +If you get a "​Connection refused"​ on running ''​yum repolist''​ the ca-bundles.crt may be old. Work-around is to change the epel.repo from using https to http:
 +<code bash>
 +sudo sed -i '​s/​https/​http/​g'​ /​etc/​yum.repos.d/​epel.repo
 +yum repolist
 +</​code>​
 +
 +===== Other commands =====
 +<code bash>
 +yum clean all
 +</​code>​
  

QR Code
QR Code tech:linux:redhat_epel (generated for current page)