There is no repository enabled in /etc/yum.repos.d

Latest response

I'm getting the following error when trying to install a package: There is no repository enabled in /etc/yum.repos.d.

I realized that to have access to the redhat repositories I need to have an account on the site, I did that and after that I linked it to my terminal with the commands:

  • sudo subscription-manager register
  • sudo subscription manager refresh

Usually when I checked the /etc/yum.repos.d/redhat.repo file the directories were all there, but gone. What could have happened?

Responses