It’s a bit silly process, googled hours but found not solid way to update my old 32bit centos 5 linux box. So came up with a solution of my own. It might work for you, but no guarantee!
Step-1
Remove all .repo inside /etc/yum.conf.d/ directory
Step-2
Create a new repo file inside /etc/yum.conf.d/
nano /etc/yum.conf.d/CentOS-Vault.repo
Update with the following section:
# CentOS-Vault.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # #---- Packages previously released as 5.10, and its updates [C5.10-base] name=CentOS-5.10 - Base baseurl=http://vault.centos.org/5.10/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.10-updates] name=CentOS-5.10 - Updates baseurl=http://vault.centos.org/5.10/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.10-extras] name=CentOS-5.10 - Extras baseurl=http://vault.centos.org/5.10/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.10-centosplus] name=CentOS-5.10 - Plus baseurl=http://vault.centos.org/5.10/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.9, and its updates [C5.9-base] name=CentOS-5.9 - Base baseurl=http://vault.centos.org/5.9/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.9-updates] name=CentOS-5.9 - Updates baseurl=http://vault.centos.org/5.9/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.9-extras] name=CentOS-5.9 - Extras baseurl=http://vault.centos.org/5.9/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.9-centosplus] name=CentOS-5.9 - Plus baseurl=http://vault.centos.org/5.9/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.8, and its updates [C5.8-base] name=CentOS-5.8 - Base baseurl=http://vault.centos.org/5.8/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.8-updates] name=CentOS-5.8 - Updates baseurl=http://vault.centos.org/5.8/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.8-extras] name=CentOS-5.8 - Extras baseurl=http://vault.centos.org/5.8/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.8-centosplus] name=CentOS-5.8 - Plus baseurl=http://vault.centos.org/5.8/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.7, and its updates [C5.7-base] name=CentOS-5.7 - Base baseurl=http://vault.centos.org/5.7/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.7-updates] name=CentOS-5.7 - Updates baseurl=http://vault.centos.org/5.7/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.7-extras] name=CentOS-5.7 - Extras baseurl=http://vault.centos.org/5.7/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.7-centosplus] name=CentOS-5.7 - Plus baseurl=http://vault.centos.org/5.7/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.6, and its updates [C5.6-base] name=CentOS-5.6 - Base baseurl=http://vault.centos.org/5.6/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.6-updates] name=CentOS-5.6 - Updates baseurl=http://vault.centos.org/5.6/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.6-extras] name=CentOS-5.6 - Extras baseurl=http://vault.centos.org/5.6/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.6-centosplus] name=CentOS-5.6 - Plus baseurl=http://vault.centos.org/5.6/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.5, and its updates [C5.5-base] name=CentOS-5.5 - Base baseurl=http://vault.centos.org/5.5/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.5-updates] name=CentOS-5.5 - Updates baseurl=http://vault.centos.org/5.5/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.5-extras] name=CentOS-5.5 - Extras baseurl=http://vault.centos.org/5.5/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.5-centosplus] name=CentOS-5.5 - Plus baseurl=http://vault.centos.org/5.5/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.4 and its updates [C5.4-base] name=CentOS-5.4 - Base baseurl=http://vault.centos.org/5.4/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.4-updates] name=CentOS-5.4 - Updates baseurl=http://vault.centos.org/5.4/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.4-extras] name=CentOS-5.4 - Extras baseurl=http://vault.centos.org/5.4/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.4-centosplus] name=CentOS-5.4 - Plus baseurl=http://vault.centos.org/5.4/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.3 and its updates [C5.3-base] name=CentOS-5.3 - Base baseurl=http://vault.centos.org/5.3/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.3-updates] name=CentOS-5.3 - Updates baseurl=http://vault.centos.org/5.3/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.3-extras] name=CentOS-5.3 - Extras baseurl=http://vault.centos.org/5.3/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.3-centosplus] name=CentOS-5.3 - Plus baseurl=http://vault.centos.org/5.3/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.2 and its updates [C5.2-base] name=CentOS-5.2 - Base baseurl=http://vault.centos.org/5.2/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.2-updates] name=CentOS-5.2 - Updates baseurl=http://vault.centos.org/5.2/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.2-extras] name=CentOS-5.2 - Extras baseurl=http://vault.centos.org/5.2/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.2-centosplus] name=CentOS-5.2 - Plus baseurl=http://vault.centos.org/5.2/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.1 and its updates [C5.1-base] name=CentOS-5.1 - Base baseurl=http://vault.centos.org/5.1/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.1-updates] name=CentOS-5.1 - Updates baseurl=http://vault.centos.org/5.1/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.1-extras] name=CentOS-5.1 - Extras baseurl=http://vault.centos.org/5.1/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.1-centosplus] name=CentOS-5.1 - Plus baseurl=http://vault.centos.org/5.1/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 #---- Packages previously released as 5.0 and its updates [C5.0-base] name=CentOS-5.0 - Base baseurl=http://vault.centos.org/5.0/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.0-updates] name=CentOS-5.0 - Updates baseurl=http://vault.centos.org/5.0/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.0-extras] name=CentOS-5.0 - Extras baseurl=http://vault.centos.org/5.0/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0 [C5.0-centosplus] name=CentOS-5.0 - Plus baseurl=http://vault.centos.org/5.0/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=0
Репозиторий epel
Устанавливаем репозиторий
# yum -y install epel-release
Далее приводим к виду:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1