[root@node19 ~]# mount -o loop centos-7.6.iso /public/software/cdrom
[root@node19 ~]# vim /etc/yum.repos.d/cdiso.repo
[cd1]
name=cd1
baseurl=file:///public/software/cdrom
enabled=1
gpgcheck=0
[root@node19 ~]# yum install vim
[root@node19 ~]# mount -o loop centos-7.6.iso /public/software/cdrom
[root@node19 ~]# vim /etc/yum.repos.d/cdiso.repo
[cd1]
name=cd1
baseurl=file:///public/software/cdrom
enabled=1
gpgcheck=0
[root@node19 ~]# yum install vim
本文标题:yum配置本地iso镜像
本文链接:https://www.haomeiwen.com/subject/sgrphctx.html
网友评论