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

posted on 2019-10-31 09:53  骑着蜗牛追太阳  阅读(239)  评论(0编辑  收藏  举报

导航