Environment: Centos6.5 is newly installed, I had no other package is installed. The idea is to install epel source after the installation tmux.
yum install epel-release
# Yum install Linux epel the sourceyum makecache
# Package information to the local cache server
Note: This step may be error, "Error: Can not retrieve metalink for repository:. Epel Please verify its path and try again"yum --disablerepo=epel -y update ca-certificates
# Update certificate
Note: After a successful update you can try step 2 again, there may be an error message (if successful can go directly to Step 7 installation operation).vim /etc/yum.repos.d/epel.repo
# Edit epel file
the original contents of the file is
[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
changed so
[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
that is the baseurl open, commented mirrorlist.yum clean all
# Clean up the sourceyum makecache
# Update sourceyum install tmux
# Installation tmux
Reference: centos6 compile and install free tmux , solve centos6 Error: Can not retrieve metalink for repository