如何在RHEL Red Hat上启用CentOS存储库?
我正在购买RHEL许可证。同时,我想在RHEL 7上使用CentOS 7仓库。我在/etc/yum.repos.d目录中创建了/etc/yum.repos.d/centos.repo文件,但我没有知道如何超越。我在网上找到的大多数信息要么指向fedora仓库,要么指向CentOS 5。谢谢。 [centos] name=CentOS $releasever - $basearch baseurl=http://ftp.heanet.ie/pub/centos/7/os/$basearch/ enabled=1 gpgcheck=0 [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch= $basearch&repo=os baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch= $basearch&repo=updates baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 priority=1 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch= $basearch&repo=addons …