Yum Repository Issue for CentOS 6.4

So after an install of CentOS 6.4, I noticed an issue when trying to update the YUM repository to be able to update the RPM packages.  First, after a fresh install, you have to update the repo files which exist in the /etc/yum.repos.d/ directory. To do this you have to enter the command:

sudo yum install epel-release

Doing this will set up the directive to update the yum repo for enterprise Linux packages. The problem is when it does that, it actually sets up the links as HTTPs instead of HTTP.  My guess when it tries to browse to the mirror list, the mirror doesnt allow HTTPs and therefore fails to pull the correct RPM list from the repo.  To fix it you will have to go to the /etc/yum./repos.d/epel.repo config file and modify all the mirror lists to reflect HTTP instead of HTTPS.   This will fix the issue.   The config file should look like this once completed.

/etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://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=http://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=http://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

I havent seen this issue in CentOS 7 or any other version about 6.4 but definitely something to watch out for when you are trying to update your repos.