大网数据广告活动
服务器运维问答

Is it possible to create a RHEL 6 repo on a RHEL 7 server

· 52CE 我爱测

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 …

问题原文

原帖链接 · anairinac · CC BY-SA 4.0

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?

已采纳解答

原帖链接 · Nasir Riley · CC BY-SA 4.0

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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-05-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。