Bug 242202
Summary: | [FAQ] How to use a local yum mirror before the official ones | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Răzvan Sandu <rsandu2004> |
Component: | yum | Assignee: | James Antill <james.antill> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 7 | CC: | charlescurley, dgunchev |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://fedoraproject.org/wiki/Docs/Drafts/SoftwareManagementGuide/CustomizingYum?highlight=%28yum%29 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-09-13 18:13:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Răzvan Sandu
2007-06-02 06:52:36 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 'mirrorlist'? 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: -------------------------------------------------- [core] name=Fedora Core $releasever - $basearch baseurl=ftp://charlesc/pub/f$releasever/F-$releasever-i386-DVD.iso enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY -------------------------------------------------- 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. 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. |