【Linux】CentOS 6.X 更换http软件源

centos6 大概官网源失效,其他源又需要tls1.2支持(https),目前CERN还有http的源,因此替换成CERN的源就可以了。

来源:https://forums.centos.org/viewtopic.php?f=13&p=331204

CERN made a convenient choice of keeping CentOS 6 vault access compatible with older TLS connections
https://www.mark-gilbert.co.uk/fixing-y … w-its-eol/

so for a legacy CentOS 6.4 the /etc/yum.repos.d/CentOS-Base.repo

把baseurl=“”,全部修改,mirrorlist注释掉。

另外CERN没有6.0的系统。repo源文件里用变量的可以直接修改下面网站的格式

http://linuxsoft.cern.ch/centos-vault/6.3/os/x86_64/

谢谢你,CERN