mkdir /mnt/iso
编辑/etc/fstab,添加如下行
/tool/xxx.iso /mnt/iso iso9660 loop,ro,auto 0 0
编辑/etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/iso/
enabled=1
-------------------centos ----------------------------------
[Local]
name=LocalYum
baseurl=file:///mnt/iso
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
网友评论