I am trying to create a RHEL 6 repository, but since I have a RHEL 7 repository, I was thinking if it is possible to create that repo on the same server.
I already have a valid and currently registered subscription on the RHEL 7 server, but when y run # subscription-manager repos --list
I only see RHEL 7 repos on the list and whey I try adding rhel-6-server-rpms
repo (which appears to be part of the content I have available in my subscription) I get:
subscription-manager repos –enable=rhel-6-server-rpms
Error: 'rhel-6-server-rpms' does not match a valid repository ID. Use "subscription-manager repos –list" to see valid repositories.
Any ideas of what is happening or how can I enable that repo?
Best Answer
No.
The repos for RHEL 6 are not available for RHEL 7 because there would be a carnival of package conflicts, dependency hells on earth, and utter chaos.
Can you imagine
yum
trying to install RHEL 6 packages or just packages that aren't compatible with what's available in RHEL 7 because the former is deprecated?The
subscription manager
doesn't allow what you're trying to do for this very reason.