How to configure yum to use our local Fedora Core or CentOS repositories
If you have a Fedora 4, Fedora 6, Fedora 7 or CentOS 4 Dedicated or Virtual Dedicated server with us, you can point your yum
mirror lists at our servers. We have local repositories, giving you high speed package management.
NOTE: If you provisioned or reprovisioned your server after 11 July 2007, this configuration was done for you. There is no need to make any change.
Configuring CentOS 4
- SSH to your server.
- Type
su -
and press Enter to gain root access. - Use your text editor of choice (vi, nano, etc.) to edit
/etc/yum.repos.d/CentOS-Base.repo
Under the [base] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [update] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-updates.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [addons] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-addons.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [update] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-updates.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [extras] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-extras.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [centosplus] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-centosplus.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [contrib] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-updates.$basearchAnd add a new line, if not already there:
failovermethod=priorityUnder the [update] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/cos-$releasever-contrib.$basearchAnd add a new line, if not already there:
failovermethod=priority
Configuring Fedora 4 or Fedora 6
- SSH to your server.
- Type
su -
and press Enter to gain root access. - Use your text editor of choice (vi, nano, etc.) to edit
/etc/yum.repos.d/fedora.repo
Fedora Core 4; or/etc/yum.repos.d/fedora-core.repo
Fedora Core 6 Under the [base] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/fedora-core-$releaseverAnd add a new line, if not already there:
failovermethod=priority- Use your text editor of choice (vi, nano, etc.) to edit
/etc/yum.repos.d/fedora-updates.repo
Under the [updates-released] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/updates-released-fc$releaseverAnd add a new line, if not already there:
failovermethod=priority- Use your text editor of choice (vi, nano, etc.) to edit
/etc/yum.repos.d/fedora-extras.repo
Under the [extras] section, change the mirrorlist line to:
mirrorlist=http://mirrorlist.secureserver.net/download/mirrors/fedora-core-$releaseverAnd add a new line, if not already there:
failovermethod=priority