在RHEL中,yum的配置文件为/etc/yum.repos.d/redhat.repo
里面是空的,没有任何仓库。
在这个目录下新建一个tsinghua.repo文件,写入:
[rhel-8-baseos-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - BaseOS Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-8-for-aarch64-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for ARM 64 - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/aarch64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-8-for-ppc64le-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for Power, little endian - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/ppc64le/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-8-for-s390x-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for IBM z Systems - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/s390x/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-g