redhat 搭建yum 源
搭建本地yum
mount -o loop rhel.iso /media/rhel-iso
新建/etc/yum.repos.d/rhel.repo:
[rhel]
name=rhel
baseurl="file:///media/rhel-iso"
gpgcheck=0
搭建网络yum
新建/etc/yum.repos.d/rhel.repo:
[rhel]
name=rhel
baseurl=http://mirrors.163.com/centos/7/os/$basearch/ #rhel 7
baseurl=http://mirrors.163.com/centos/8/BaseOS/$basearch/os/ #rhel 8
gpgcheck=0