[Yum] Repo Management

Oliver Falk oliver at linux-kernel.at
Wed Oct 10 06:22:12 UTC 2007


On 10/10/2007 08:15 AM, Jos Vos wrote:
> On Tue, Oct 09, 2007 at 07:55:20PM -0400, seth vidal wrote:
> 
>> include=http://myserver/some/yum.conf
>>
>> in your /etc/yum.conf and it will grab that file and 'heredoc' it.
> 
> Are variables substituted in the URL?  Then you can set some $YUM<n>
> variable, e.g. to the hostname or to some a class name (e.g. "desktops"),
> so that you can create config files per hostname/class and make them
> available via NFS or so.

Hostname you could also look up via reverse DNS (if you can rely on that).

I do something like this:

[oliver at pils ~]$ grep include /etc/yum.conf
include=http://conf.rpms.linux-kernel.at/GetRepositories.pl?releasever=devel&arch=$arch&basearch=$basearch

You can guess how the script looks like (just a hint, it supports RHEL
and Fedora)...

Best,
 Oliver



More information about the Yum mailing list