How to set repository priorities.

Solution Verified - Updated -

Issue

  • Is it possible to give priority to custom yum repositories, such that they supersede the ones provided by default through RHSM?
  • How to use the "yum-plugin-priorities" plugin in Red Hat Enterprise Linux 6 & 7.
  • How to set a repository priority
  • 3rd party repositories such as EPEL are updating RHEL packages. How do I stop that without disabling EPEL.

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content