Local Yum Repo HowTo On Line

Paul Howarth paul at city-fan.org
Thu Jun 30 08:33:56 UTC 2005


On Tue, 2005-06-28 at 21:06 -0400, David Cary Hart wrote:
> This is probably a worthwhile endeavor if you have three or more
> machines to keep updated. There are a number of these floating around. I
> have tried to update and simplify the process.
> 
> Let me know what you think.
> http://www.TQMcube.com/repo.htm

Why edit yum.conf instead of yum.repos.d/fedora.repo and
yum.repos.d/fedora-updates.repo? By editing yum.conf, people will get
the warnings about repos already being defined.

The baseurls seem to be inconsistent. If you've run
"createrepo /var/www/html/yum/base" then the baseurl should be:
http://192.168.0.xx/yum/base
and not:
http://192.168.0.xx/yum/Fedora/core/$releasever/base/RPMS

A better tweak for the baseurl on the machine hosting the local repo is:

rather than:
baseurl=http://localhost/yum/base
use:
baseurl=file:///var/www/html/yum/base

This makes yum faster because it doesn't bother downloading and caching
the packages from the web server.

In step 5, there is a typo: /var/www/html/yum/upates in the rsync
command should be /var/www/html/yum/updates

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list