Enabling repositories results in "Repositories are disabled by configuration" error.

Solution Verified - Updated -

Issue

  • Unable to enable the repositories for the system as subscription-manager results in below error.
[root@xxxx]#subscription-manager repos --enable=<REPO ID>
Repositories disabled by configuration
[root@xxxx]#

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management (RHSM)

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