RHEL8接入软件源

发布时间 2023-12-08 19:03:32作者: 独行小熊

RHEL8接入软件源

参考:

https://blog.csdn.net/m0_51517236/article/details/123060376

https://blog.csdn.net/mitays/article/details/119931657

禁用subsription-manager,否则会报错This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

编辑文件​vim /etc/yum/pluginconf.d/subscription-manager.conf

将里面的enable改成0

[main]
enabled=0

下载CentOS 8的软件源repo文件,放入/etc/yum.repos.d/目录中

repo文件下载地址

https://mirrors.aliyun.com/repo/Centos-8.repo

然后执行yum install 就可以安装想要的软件了