On Thu, 2008-06-19 at 17:00 -0400, Greg Ward wrote: > I cannot think of a good way to do this. I can think of a nasty way, > which is to use "rpm -qf /etc/redhat-release" to figure out if this is > fedora, redhat, or centos and proceed from there. Is there a better > approach? The way I do this is to set up virtual servers on the repo server and DNS aliases redhat and fedora. The RHEL/Centos go to: baseurl = http://redhat.our.domain/$releasever/$basearch/... The fedora clients go to: baseurl = http://fedora.our.domain/$releasever/$basearch/... The virtual server config translates that to the relevant directory. The repo config has to be configured appropriately at install time on each client which means checking /etc/redhat-release or /etc/fedora-release. (I do that in the kickstart %post.) Another way would be to set $YUM0 in the environment and use that in your local repo config. I don't know of any simpler way to do it. -- Ian _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum