After CentOS 4 hit End of Life in February (No updates after 29 February 2012), 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 hasn’t been released yet
However, there is very easy way to get “yum” working again without upgrading everything to newer version of CentOS.
- Login to your server/SSH using root
- Open /etc/yum.repos.d/CentOS-Base.repo in an editor (vi/vim)
- Comment out the “mirrorlist” entries
- Uncomment the “baseurl” entries and change them to http://vault.centos.org/4.9/os/$basearch
That’s it!Fix CentOS Yum Error - '4 is not a valid release' #centos #linux Click To Tweet