Centos6 repo源更换为搜狐源
/etc/yum.repos.d/CentOS-Souhu-Base.repo
[base]
name=CentOS-\$releasever - Base
baseurl=http://mirrors.sohu.com/centos/\$releasever/os/\$basearch/
gpgcheck=0
[updates]
name=CentOS-\$releasever - Updates
baseurl=http://mirrors.sohu.com/centos/\$releasever/updates/\$basearch/
gpgcheck=0
[extras]
name=CentOS-\$releasever - Extras
baseurl=http://mirrors.sohu.com/centos/\$releasever/extras/\$basearch/
gpgcheck=0
Centos6.6 使用yum 源
[base]
name=Base
baseurl=http://vault.centos.org/centos/6/os/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=Updates
baseurl=http://vault.centos.org/centos/6/updates/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=Extras
baseurl=http://vault.centos.org/centos/6/extras/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
[centosplus]
name=centosplus
baseurl=http://vault.centos.org/centos/6/centosplus/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
[contrib]
name=Contrib
baseurl=http://vault.centos.org/centos/6/contrib/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
[fasttrack]
name=fasttrack
baseurl=http://vault.centos.org/centos/6/fasttrack/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/centos/RPM-GPG-KEY-CentOS-6
========================================================================
[base]
name=CentOS-6.6 - Base
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-6.6 - Updates
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-6.6 - Extras
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[centosplus]
name=CentOS-6.6 - Plus
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[contrib]
name=CentOS-6.6 - Contrib
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
————————————————
原文链接:https://blog.csdn.net/wojiuwangla/article/details/112186395