2009/9/24 Jason Edgecombe <[email protected]>:
> Hi Everyone,
>
> I'm looking at an easy way to have may machines hit different yum repo's
> based on the release of RedHat they are running (i.e. 5.2 vs 5.4). The
> $releasever in yum.conf would be nice, but I think it only does major
> releases. Is there a good way to do this besides having a yum.conf file
> for each release.
>
> FYI, I have local mirrors of 3rd party rpms and I only want the machines
> to get the newer 3rd-party rpms after/during the upgrade to 5.4

man yum.conf:

       $releasever
              This will be replaced with the value of the version of the pack-
              age listed in distroverpkg. This  defaults  to  the  version  of
              ‘redhat-release’ package.

Which leads you to this yum.conf setting:

       distroverpkg
              The package used by yum to determine the "version" of  the  dis-
              tribution.  This  can be any installed package. Default is ‘red-
              hat-release’. You can see what provides this manually by  using:
              "yum whatprovides redhat-release".

Which means you need to have a package installed on the machine that
has a Version of 5.4, and put the name of that package in the
distroverpkg...

How you do that depends on your environment, because you'd need to
trigger it to be upgraded when you upgraded the machine to 5.4

(I have to admit that actually these options are actually pulled from
Fedora as I don't have a RHEL machine online at home - I haven't
checked that RHEL has the same yum.conf options - you'll need to check
that one out before following my advice ;o)

-- 
Sam

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to