Create a new rhel-beta.repo file in the /etc/yum.repos.d directory
document content:
[rhel-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch
baseurl = file: /// home/soft/temp
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
* baseurl is the yum source, that is, the mount path of the linux system
* The value of gpgkey is the RPM-GPG-KEY-redhat-beta file in the /etc/pki/rpm-gpg path , pay attention to its version