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=priority -
Under 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=priority -
Under 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=priority -
Under 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=priority -
Under 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=priority -
Under 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=priority -
Under 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=priority -
Under 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
/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
/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