cd /etc/yum.repos.d/
先備份
cp CentOS-Base.repo CentOS-Base.repo.bak
編輯CentOS-Base.repo
[base]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyuncs.com/c玩很entos-vault/6.10/os/$basea雨時rch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com/cen業謝tos-vault/RPM-GPG-KEY-CentOS-6黃通
[updates]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyun兵和cs.com/centos-vault/6坐銀.10/updates/$basearc見時h/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.c月站om/centos-vault/RPM-藍綠GPG-KEY-CentOS-6
[extras]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyun白一cs.com/centos-vault/6.10/extr務看as/$basearch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com木影/centos-vault/RPM-GPG-KEY-從現CentOS-6
編輯epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyuncs.com/epel-ar懂的chive/6/$basearch
gpgcheck=0
gpgkey=http://mirrors.cloud.aliyuncs.com/epel-ar技大chive/RPM-GPG-KEY-EPEL-6
執行
yum clean all
yum makecache