I installed the EPEL tools via 'yum install epel-release' and now I cannot 'yum update' without getting "Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again" errors.
I found a page from 2014 where the member was receiving similar errors as I.
One of the comments states to change the /etc/yum.repos.d/epel.repo
to use the baseurl
instead of the mirrorlist
as mentioned in another page/answer.
Following the second link, the change seems simple enough but after looking at /etc/yum.repos.d/epel.repo
, there are three baseurl/mirrorlist lines. I'm not sure whether to update my [epel]
, [epel-debuginfo]
, and/or [epel-source]
.
What is the consequence of me changing all three lines? This is a production server and I'm avoiding breaking it as I just got it setup and working.
Here is a copy of my /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1