[SLL] yum repos and the mysterious life of releasever

Bill Campbell bill at celestial.com
Wed Oct 17 18:19:58 PDT 2007


On Wed, Oct 17, 2007, jkeating wrote:
>On Wed, 17 Oct 2007 16:40:03 -0700
>Bill Campbell <bill at celestial.com> wrote:
>
>> OK for a concrete example, but relating to kickstart, let's say I
>> have a local mirror of the CentOS updates on in internal ftp
>> server, accessible via anon-ftp as follows:
>> 
>> 	/mirrors/centos/4.5/updates/i386
>> 	/mirrors/centos/4.5/updates/x86_64
>> 	/mirrors/centos/5.0/updates/i386
>> 	/mirrors/centos/5.0/updates/x86_64
>> 
>> What do I put in my ks.cfg file, something like this for a 32-bit
>> CentSO 5 system?
>> 
>> repo Updates ftp://ftp.example.com/mirrors/centos/5.0/updates/i386
>
>I think the command (at least in Fedora) is
>repo --name=Updates
>--baseurl=ftp://ftp.example.com/mirrors/centos/5.0/updates/i386

That sounds right.  I was typing without reading the docs :-).

>> I would also like to be able to specify this same site for
>> updating our local systems using ``yum update''.  Would I then
>> hack the /etc/yum.repos.d/CentOS-Base.repo file modifying the
>> [updates] section with a line like:
>> 
>> baseurl=ftp://ftp.example.com/mirrors/centos/$releasever/updates/$basearch/
>
>You could add it there, or you could create your own .repo file in that
>directory and define it in there too.

How does yum parse the /etc/yum.repos.d/*.conf and/or /etc/yum.conf files?
If there are multiple [updates] sections, which one prevails?  I'm pretty
familiar with the python ConfigParser module, but I'm not sure if that's
what yum is using under the hood.

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

The whole nation is interested that the best use shall be made of these
[new] territories.  We want them for the homes of free white people
	-- Abraham Lincoln, October 16, 1854


More information about the linux-list mailing list