[CentOS] local yum mirrors and yum.conf.d

Sat Jul 21 11:10:42 UTC 2007
Mogens Kjaer <mk at crc.dk>

John R Pierce wrote:
> if I have a local centos yum mirror, whats the best way of adjusting the 
> yum.repos.d/*.repo files to use this?   If I simply edit 
> CentOS-Base.repo there stands a chance that a yum update could conflict 
> with my changes.

The Fedora mirror system has a nice feature:

If you run a local fedora mirror you can put a netblock
on the Fedora mirror management page. Any request for
a mirror site from this netblock then gets directed to
the local mirror only.

In this way you access the local mirror without
changing anything in /etc/yum.conf.d

It could be nice to have this for CentOS as well...


Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk