centos 5 6 yum源历史存档
centos6 可直接执行(执行前自行备份之前的源)
rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/myki.repo https://oss.1nth.com/repo/Centos-6/aliyun_archive.repo

详情 如果需要用5修改6.10为5.11即可 epel库修改成5

[base]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-6.10
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/epel-archive/6/$basearch
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/epel-archive/RPM-GPG-KEY-EPEL-6

如果阿里云这个源不能用,可以用vault的不过国外的源速度蜗牛一样 详情去看https://vault.centos.org/6.10/

后记

因有些软件必须再centos5和6所以做了存档再oss,如有需要请发邮件,毕竟oss公共读写太耗流量