After CentOS 4 hit EOL in February, you may have noticed the following error coming from the “yum” installer:
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
For those of us that don’t have the time or ability at this moment to upgrade everything to a newer version of CentOS, there is a way to get yum working again. Simply:
- Open /etc/yum.repos.d/CentOS-Base.repo in an editor
- Comment out the “mirrorlist” entries.
- Uncomment the “baseurl” entries and change them to http://vault.centos.org/4.9/os/$basearch