测试通过:redhat/centos 6.5, 6.6, 7.2 ■准备操作系统iso文件,mount到/mnt/iso mount -o loop /soft/CentOS-6.5-x86_64-bin-DVD1.iso /mnt/iso ■屏蔽默认配置目录/etc/yum.repos.d mv /etc/yum.repos.d /etc/yum.repos.d.old ■修改/etc/yum.conf,添加文件位置,并启用enabled [server] name=server baseurl=file:///…