Frequently Asked Questions

How to Configure Yum to Use Our Local Fedora Core or CentOS Repositories

Print this Article
Comment on this Article
Last Updated: November 13, 2008 9:00 AM

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

  1. SSH to your server.
  2. Type su - and press Enter to gain root access.
  3. 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And 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.$basearch

    And add a new line, if not already there:

    failovermethod=priority

Configuring Fedora 4 or Fedora 6

  1. SSH to your server.
  2. Type su - and press Enter to gain root access.
  3. 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-$releasever

    And 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$releasever

      And 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-$releasever

      And add a new line, if not already there:

      failovermethod=priority