<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 4, 2015 at 12:35 PM, Paul Reilly <span dir="ltr"><<a href="mailto:pareilly@tcd.ie" target="_blank">pareilly@tcd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello<br><br>I have one RHEL 6.5 server which I wish to install yum-cron on. When I try to add the extra optional repo, I get this message:<br><br># subscription-manager repos --enable=rhel-6-server-optional-rpms<br>Error: rhel-6-server-optional-rpms is not a valid repo ID. Use --list option to see valid repos.<br><br># subscription-manager repos --list<br>This system has no repositories available through subscriptions.<br><br></div>My /etc/yum.repos.d/redhat.repo is overwritten by rhsm and is empty.<br><br></div>The system is showing as having a valid subscription attached when I view it at <a href="http://access.redhat.com" target="_blank">access.redhat.com</a>.  I've tried unregistering it, and re-registering it, and attaching the subscription again, but I get the same message. How do I fix the repo problem?<span class=""><font color="#888888"><br><br></font></span></div><span class=""><font color="#888888"><div>Paul<br></div><div><br><br></div></font></span></div></blockquote><div><br></div><div><br></div><div>Hello,</div><div>I too saw this behavior in the past with the command<br></div><div><br></div><div># subscription-manager repos --list<br></div><div><br></div><div>that indeed created an empty /etc/yum.repos.d/redhat.repo</div><div><br></div><div>I didn't investigate much because I noticed that then the command</div><div># yum repolist<br></div><div><br></div><div>had populated it with repositories and so I could run further subscription-manager commands</div><div>Could you try "yum repolist" too and verify?</div><div><br></div><div>Gianluca</div></div></div></div>