CentOS 5 Repository fix using vault.centos.org Rumi, January 15, 2018March 24, 2019 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: [base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://vault.centos.org/5.11/os/i386/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ baseurl=http://vault.centos.org/5.11/extras/i386/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 Step-3 Now execute- yum update Step-4 Add Epel-Repository Download epel rpm- wget http://vault.centos.org/5.11/extras/i386/RPMS/epel-release-5-4.noarch.rpm rpm -Uvh epel-release-5-4.noarch.rpm yum update And you’re done. Administrations Configurations (Linux) CentOSCentOS 5CentOS RepoCentOS5
hello, i run CentOS 5.11 and get this message: my .repo look like yours and added 5.11 baseurl=http://vault.centos.org/5.11/os/$basearch/ I get error temorary failure in name resolution trying other mirror i can connect to http://vault.centos.org/5.11/os/x86_64/repodata/repomd.xml and see the .xml file what is wrong?
Hi Hasan: Just came across your method to upgrade a legacy CentOS 5.0 system to …to something else… This is just what I was looking for, to upgrade my CentoOS 5 system to more recent components, sendmail, postfix, dns, ipop3, clamav…and a few others, but not necessarily ALL the OS (as it is working perfectly fine and runs a legacy software that requires CentOS 5 precisely). So, question is… you upgraded with this procedure …up to what version of CentOS ? How did it worked finally? Guess you made a couple of reboots due to kernel upgrades… I have to do it really carefully as to nor interrupt the operation of the server, except fo the components I mentioned above which is the ones I am interested in updating. Thanks and cheers from Mexico City. Felipe
this one is for 32 bit centos 5.xx version. The updated /etc/yum.conf.d/CentOS-Vault.repo is now available
Its worked for me.. THANK YOU…. MY OS is CentOS 5.5. but there is a correction in the file path…. Remove all .repo or change all .repo in-to .rep.old inside the path /etc/yum.repos.d – And create a new file called CentOS-Vault.repo inside the same path (as [root@localhost /]# vi /etc/yum.repos.d/CentOS-Vault.repo) Thats it…. After than Update …..