Re: Repo Management

Oliver Falk <[email protected]>
Newsgroups gmane.linux.rpm.yum
Organization Linux kernel Austria
Message-ID <[email protected]>
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@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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.