There you go. I learned something new from this discussion also.

Thanks,

Geert

On Wednesday 30 September 2009, Matthew Hyclak wrote:
> On 09/30/09 18:25, Geert Janssens enlightened us:
> > On Wednesday 30 September 2009, Daniel A. Ramaley wrote:
> > > On 2009-09-30 at 10:58:10, Geert Janssens wrote:
> > > >> My question is, how can I tell yum to give higher priority to the
> > > >> Red Hat repositories?
> > > >
> > > >http://wiki.centos.org/PackageManagement/Yum/Priorities
> > >
> > > Thanks for the link. In my own research I found mention of the CentOS
> > > yum-priorities package. I was wondering how to do it in RHEL, though,
> > > which lacks that package. Should I install it from CentOS, then
> > > manually edit each of the .repo files and add priority lines? What
> > > about the regular Red Hat repositories that aren't listed in .repo
> > > files? How do I set the priority of those?
> >
> > I'm not using Red Hat myself, so I can only suggest things. If redhat
> > doesn't provide the yum-priorities plugin in one of its own repositories,
> > I guess manually installing the yum-priorities package from the CentOS
> > repo would be the easiest route to get started.
> >
> > I am not sure what you mean with "regular Red Hat repositories that
> > aren't listed in .repo files".
> >
> > As far as I know (but my knowledge is limited) all repositories used by
> > yum are defined in /etc/yum.repos.d/ or directly in /etc/yum.conf
> >
> > Just go through all these files and add a priority=xyz to each repository
> > defined in there.
> >
> > This way you can decide which repos have the highest priority.
>
> Because of the way the yum-rhn-plugin works, priorities can't be used with
> Red Hat systems. They do provide the yum-protectbase package which isn't as
> flexible as priorities, but the Red Hat repos are protected, so any repo
> that is not protected can't overwrite packages from a protected repo. In
> your case this would probably work fine.
>
> http://wiki.centos.org/PackageManagement/Yum/ProtectBase
>
> Matt


-- 
Kobalt W.I.T.
Web & Information Technology
Brusselsesteenweg 152
1850 Grimbergen

Tel  : +32 479 339 655
Email: [email protected]

_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to