Add EPEL repository to centOS 6 64

General support questions
mantonik
Posts: 8
Joined: 2011/10/31 01:07:12
Contact:

Add EPEL repository to centOS 6 64

Post by mantonik » 2011/10/31 01:17:22

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

pjwelsh
Posts: 2632
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: Add EPEL repository to centOS 6 64

Post by pjwelsh » 2011/10/31 15:42:08

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?

mantonik
Posts: 8
Joined: 2011/10/31 01:07:12
Contact:

Re: Add EPEL repository to centOS 6 64

Post by mantonik » 2011/10/31 17:40:07

Hi.
I change https to http and then it start working.

Mariusz

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Add EPEL repository to centOS 6 64

Post by pschaff » 2011/10/31 18:59:30

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 .

bosmith
Posts: 2
Joined: 2012/01/27 10:10:04

Re: Add EPEL repository to centOS 6 64

Post by bosmith » 2012/01/27 12:36:02

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.

trailmug
Posts: 1
Joined: 2013/11/13 19:09:38

Re: Add EPEL repository to centOS 6 64

Post by trailmug » 2013/11/13 19:13:39

Sorry to awaken an old thread.. I had this issue, and needed to set the clock.

fictionedge
Posts: 1
Joined: 2014/04/10 08:33:35

Re: Add EPEL repository to centOS 6 64

Post by fictionedge » 2014/04/10 08:38:04

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

arash_arz
Posts: 1
Joined: 2014/04/30 12:53:05
Contact:

Re: Add EPEL repository to centOS 6 64

Post by arash_arz » 2014/04/30 12:59:14

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.

hyp3ri0n
Posts: 1
Joined: 2014/10/28 05:33:43

Re: Add EPEL repository to centOS 6 64

Post by hyp3ri0n » 2014/10/28 05:37:34

Hi guys,

Worked for me too by changing http from https.

Thanks Mantonik

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Add EPEL repository to centOS 6 64

Post by avij » 2014/10/28 10:48:22

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.

Post Reply