Package installation fails with no repositories enabled in "/usr" path on RHEL.

Solution Verified - Updated -

Issue

  • Unable to install packages due to below error:

    Error: There are no enabled repositories in "/usr/xxxxx/etc/yum.repos.d", "/usr/xxxxx/etc/yum/repos.d", "/usr/xxxxx/etc/distro.repos.d".
    

Environment

  • RHEL 7+

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