include("site.inc"); $template = new Page; $template->initCommon(); $template->displayHeader(); ?>
Client systems that use yum
to contact your
mirror also require configuration. The yum
repository configuration files are located in
/etc/yum.repos.d
and end with the suffix
.repo
. Below is an example configuration
file.
[mirror]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://server.mydomain.net/mirror/fedora/linux/core/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Example 3. Example
/etc/yum.repos.d/fedora-mirror.repo
Client systems should use a repository configuration file for each Fedora branch your mirror provides. The base distribution and released updates, for example, each require a separate configuration file.
If you want clients to use your mirror in place of the official
repositories, disable the existing repositories. To do this, edit
the client's file for the official repository to include the
directive enabled=0
. You will need
root
access to edit
these files.
Many repositories provide their own installable RPM packages
containing these configuration files. When a user installs the
RPM, the new files in /etc/yum.repos.d/
reference that repository. These packages simplify the addition
of new repositories for end users. Whether you use such a package
yourself will depend on the number and skill set of clients your
repository serves.