Thks for the answers.
I know how to create a repo. The issue came in a testing enviroment where my machine didnt have a rhn suscription. I saw some repos created and I had the info to create a new one. I created a new one but it was still complaining about not being suscribed to RHN. I tried to disable the repos I could see in the /etc/yum.repos.d but still got the same error.
Today I read that I should
#yum clean all
in order to update the cache but im still feeling skeptical.
If your message is something like this:
"This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register"
You can just disable the subscription manager plugin.
Edit the subscription-manager.conf file and change enable=1 to enable=0
# nano or vi /etc/yum/pluginconf.d/subscription-manager.conf
And change this:
You can test with yum repolist
Thanks Fernando. Paloma , please let us how it went. We will like to get this working for you.
Also, in /etc/yum.repos.d , there is this file in there "rhel-source.repo" . This file belongs to red hat . Make sure all the :
" enabled" keyword are turned off (0)
This is the entry :
name=Red Hat Enterprise Linux $releasever - $basearch - Source
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source