Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

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

Post navigation

Previous post
Next post

Comments (13)

  1. Felix says:
    November 16, 2018 at 2:59 pm

    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?

    Reply
    1. Rumi says:
      November 19, 2018 at 10:38 am

      I’ll look into it once I have free time 🙂

      Reply
    2. WENDEL LUIZ DA ROCHA says:
      April 13, 2019 at 1:02 am

      Hello Felix,

      In my case I decided to clear the yum cache.
      Run yum clean all

      Reply
  2. Felipe says:
    February 21, 2019 at 5:05 am

    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

    Reply
    1. Rumi says:
      March 28, 2019 at 10:09 am

      this one is for 32 bit centos 5.xx version. The updated /etc/yum.conf.d/CentOS-Vault.repo is now available

      Reply
  3. yutamaertasaricellular says:
    April 6, 2019 at 6:38 pm

    mine is centos-release-5-8.el5.centos ..should i change the 5.11 line with 5.8?

    Reply
    1. Rumi says:
      April 29, 2019 at 11:21 am

      Yes you can!

      Reply
  4. Jeffrey says:
    June 11, 2019 at 12:49 am

    I need to install Openvpn in centos 5

    Reply
  5. Faslul Haq Mursi (SL) says:
    June 24, 2020 at 12:00 am

    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 …..

    Reply
  6. llazz says:
    October 4, 2021 at 3:42 pm

    Many thanks !!! You saved my “old” server 😀

    Reply
  7. summer says:
    May 20, 2022 at 4:31 am

    i just get loads of SSL erros from python. near impossible to do this nowadays o7

    Reply
    1. Mery says:
      July 12, 2022 at 2:20 pm

      how to resolve isuue with ssl ?

      Reply
      1. Rumi says:
        August 1, 2022 at 3:24 pm

        Mine got worked without SSL!

        Reply

Leave a Reply to Felix Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes