Under Centos6.5 installation tmux (free compiler)

Environment: Centos6.5 is newly installed, I had no other package is installed. The idea is to install epel source after the installation tmux.

  1. yum install epel-release # Yum install Linux epel the source
  2. yum 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"
  3. 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).
  4. 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.
  5. yum clean all # Clean up the source
  6. yum makecache # Update source
  7. yum install tmux # Installation tmux

Reference: centos6 compile and install free tmux , solve centos6 Error: Can not retrieve metalink for repository

Guess you like

Origin www.cnblogs.com/sfriend/p/11918886.html