Page 1 of 2

Add EPEL repository to centOS 6 64

Posted: 2011/10/31 01:17:22
by mantonik
Hi.

I want to add EPEL reporsitory to server but I have some problem with it.

Server
Linux 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux

first I did:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

root@vtcpanel [/etc/yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

then I remove that package and install
rpm -ivh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

but I receve this same error:
root@vtcpanel [/etc/yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


epel.repo file:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

Any suggestion how to resolve this problem?
Thank you

Re: Add EPEL repository to centOS 6 64

Posted: 2011/10/31 15:42:08
by pjwelsh
Maybe EPEL was having an issue at that time. Not sure. Your attempts at install look OK at first glance. It seems to work for me now.
Do you have a proxy server you need to reference?

Re: Add EPEL repository to centOS 6 64

Posted: 2011/10/31 17:40:07
by mantonik
Hi.
I change https to http and then it start working.

Mariusz

Add EPEL repository to centOS 6 64

Posted: 2011/10/31 18:59:30
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

[quote]
mantonik wrote:
I change https to http and then it start working.
[/quote]
Works for me with "https". Are you sure there is not a proxy server, or a firewall blocking port 443?

OT: You may want to consider using the [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=33458&forum=53]Continuous Release [cr] repo[/url]. The current kernel is 2.6.32-131.17.1.el6.x86_64 .

Re: Add EPEL repository to centOS 6 64

Posted: 2012/01/27 12:36:02
by bosmith
I have to go through a proxy server so if I set https_proxy to point to the proxy server before running yum, the problem goes away.

Re: Add EPEL repository to centOS 6 64

Posted: 2013/11/13 19:13:39
by trailmug
Sorry to awaken an old thread.. I had this issue, and needed to set the clock.

Re: Add EPEL repository to centOS 6 64

Posted: 2014/04/10 08:38:04
by fictionedge
Right on! Solution solved my problem too. I think it is the proxy's fault that keeps the https out. I have an enterprise proxy that I don't have access to it's configuration and that gives allot of problems with https links

Re: Add EPEL repository to centOS 6 64

Posted: 2014/04/30 12:59:14
by arash_arz
The Most Popular Problem occured when your Centos Operation System CLOCK not be correct
so https keys ( certificates ) goes down due to invalid time and date , you must set your clock correct then install EPEL repo.
but when this problem occured you can edit the /etc/yum.repos.d/epel.repo and comment the mirrorlist url (that have https) and uncomment baseurl.
by this method your downloads passthrough HTTP protocol and time miss mach cannot make yum install as crazy.

Re: Add EPEL repository to centOS 6 64

Posted: 2014/10/28 05:37:34
by hyp3ri0n
Hi guys,

Worked for me too by changing http from https.

Thanks Mantonik

Re: Add EPEL repository to centOS 6 64

Posted: 2014/10/28 10:48:22
by avij
As a general rule, if you have problems with EPEL, run yum update --disablerepo=epel\* to update your CentOS to at least CentOS 6.5. Then try your yum install some-epel-package, or whatever you were trying to do.