Alicloud CentOS 5 old version yum/ repomd.xml : [Errno 14] HTTP Error 404: Not Found

Too old version, many source 163 sohu ali cloud image has been deleted, so when using yum, it is not available, report 404 error. I found the following method.

使用centos-vault作为停止支持的CentOS的yum源


Just replace it with the source of Cenos-Vault.
Change all source host addresses in /etc/yum. Repos. D/cenos-base.repo file to http://vault.centos.org, and replace $releasever with the CentOS version used by the current system. 5.x final version 5.11 can be used. Note that all other alternate hosts need to be removed, as follows
[base]
name = CentOS – 5.11 – base
failovermethod = priority
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck = 1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-5

# released updates

[updates] name = CentOS – 5.11 – updates
failovermethod = priority
baseurl=http://vault.centos.org/5.11/updates/$basearch/

gpgcheck = 1 gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-5

# additional packages that may be useful in
[extras]
name = CentOS – 5.11 – extras
failovermethod = priority

baseurl=http://vault.centos.org/5.11/extras/$basearch/ gpgcheck = 1 gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-5

# additional packages that extend functionality of existing Packages

[centosplus] name = CentOS – 5.11 – Plus
failovermethod = priority
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
gpgcheck = 1

enabled = 0 gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-5

# contrib – packages by Centos Users

[contrib] name = Centos – 5.11 – contrib
failovermethod = priority

baseurl=http://vault.centos.org/5.11/contrib/$basearch/ gpgcheck = 1 enabled = 0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-5

Then execute yum clean all & & Yum makecache will do.

Read More: