CentOS 4.x Yum Repo (Install/Update Fix)
For those of you that are having issues with the repositories for CentOS 4.x versions. I have a fix for you.
Error: Bad/Outdated Mirrorlist, and Baseurl for CentOS4.x
When attempting to run "yum install" "yum update"...or any other command for installing or updating CentOS 4 components, you are halted because the mirrorlist cannot be found. This is because CentOS no longer offers support for that OS.
Normally, I would say just migrate to a newer version, however some of you cannot for various reasons (libs, applications, compatibility, etc.,).
I have adjusted the repos file to an active baseurl and mirrorlist, which will redirect your CentOS to an active update server.
The new mirrorlist is out of Washington State, from my old school and one other to be exact (University of Washington, and/or Washington State University...UW redirects you to "eecs" so I saved it the trouble and just linked it directly there).
Here it is guys, (Copy the code and replace your centos repo contents with this.)
Code:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1
#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirror.eecs.wsu.edu/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/4.6/os/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1
Alternatively...if you do not know what you are doing, or dont feel like copying...I have uploaded a fixed repos file (contains the exact same text as above)
CentOS-Base.repo [Fixed]
Enjoy....hope this helps you guys
Re: CentOS 4.x Yum Repo (Install/Update Fix)
Now the error is:
Quote:
not using ftp, http[s], or file for repos, skipping - </body></html>
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
Have more lines .. more repeat and say of lines of html and say not using ftp... I use CentOS 4.7