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.

Regards,

Geert
-- 
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