CentOS 5 available domestic mirror

CentOS 5 already in March 2017 to stop supporting a lot of image can not be used, there are domestic and Ali cloud mirror source Tsinghua University provides CentOS previous history archive that centos-vault, is provided below in order to save only 5.11 source software, if you need an earlier version of your own text replacement.

The following are the available sources of CentOS 5, contrib, addons, fasttrack library has no anything, so do not write:

[base]
name=CentOS-$releasever - Base
baseurl = https: //mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/os/$basearch/
	https://mirrors.aliyun.com/centos-vault/5.11/os/$basearch/
enabled=1
gpgcheck=0

[updates]
name=CentOS-$releasever - Updates
baseurl = https: //mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/updates/$basearch/
	https://mirrors.aliyun.com/centos-vault/5.11/updates/$basearch/
enabled=1
gpgcheck=0

[extras]
name=CentOS-$releasever - Extras
baseurl = https: //mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/extras/$basearch/
	https://mirrors.aliyun.com/centos-vault/5.11/extras/$basearch/
enabled=1
gpgcheck=0

[Centosplus]
name=CentOS-$releasever - Plus
baseurl = https: //mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/centosplus/$basearch/
	https://mirrors.aliyun.com/centos-vault/5.11/extras/$basearch/
enabled=1
gpgcheck=0

Create a file in /etc/yum.repos.d/ below, write the contents of the above, then you can upgrade and update the cache:

yum makecache
yum update

There is no stable source of domestic EPEL mirror, so I did not have to provide.

Guess you like

Origin www.cnblogs.com/yumex/p/12329376.html