Bug 242202 - [FAQ] How to use a local yum mirror before the official ones
Summary: [FAQ] How to use a local yum mirror before the official ones
Alias: None
Product: Fedora
Classification: Fedora
Component: yum   
(Show other bugs)
Version: 7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: James Antill
QA Contact:
URL: http://fedoraproject.org/wiki/Docs/Dr...
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-02 06:52 UTC by Răzvan Sandu
Modified: 2014-01-21 22:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-13 18:13:16 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Răzvan Sandu 2007-06-02 06:52:36 UTC
Description of problem:


IMHO, this documentation-related bug is almost a FAQ and refers to the default
yum configuration present in Fedora 7 (yum package and .repo files from
fedora-release package).

Please suppose that, on a standard F7 machine, an administrator has an exact
copy of an F7 mirror *inside* a LAN, in order to provide online updates to a lot
(tens or hundreds) of Fedora boxes around (and to save bandwidth for the
official mirrors, speeding up the whole process).

So this copy *is not* in the official mirror list (since it is behind
NAT/firewall and it's not even visible in Internet).

Now what we want is to prioritize access for online updates (starting from the
default configuration of yum, with as little manual modification in Linux
clients' yum config files as possible):

- first, a client should check the local (LAN) mirror for updates;
- if this fails, client should go to local Internet mirrors. *Please note* that
geographically-closest mirrors are not necessarily the faster ones, due to
strange peering agreements between various ISPs;
- the ultimate source should be authoritative Fedora mirrors (Red Hat,
mother-site ?).

Please provide a recommended/supported way of reaching this functional goal,
starting from default configuration files included in the distro.


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:
There is no standard guide/piece of documentation or default config file that
describes how to properly obtain such a failover configuration.

Expected results:
The piece of documentation or default config file should exist.

Additional info:

Comment 1 Doncho Gunchev 2007-06-06 17:18:04 UTC
I use only local mirror for now (most of the time), but I saw you can use both
'baseurl' and 'mirrorlist'. What would be the behavior in this case? Would that
make yum search each package in the 'baseurl' repo and then look in the

Comment 2 Charles Curley 2007-06-22 14:13:06 UTC
I have a similar situation: I have a local repo of F7, using the DVD. I prefer
that clients pull from it instead of the Fedora repo. I don't know that this is
a perfect solution, but it seems to work:

* Create your local repo, as above.

* Create a repo file, say "fedora-core.repo", with the key stanza:

name=Fedora Core $releasever - $basearch

and modify the URL to suit.

* Install yum-fastestmirror. I don't know if you have to have it to make this
work, but it seemed like a good idea at the time.

Clients seem to pull from the core repo when they can.

Comment 3 Jeremy Katz 2007-09-13 18:13:16 UTC
Local mirrors that are for behind a NAT only can in fact be set up and
registered with the primary mirror infrastructure
(http://mirrors.fedoraproject.org) so that you get pointed at the right place
from the mirrorlist for your NAT.  See there for the docs about setting up.

Note You need to log in before you can comment on or make changes to this bug.