建立可用实验快照(二) 缓存
四:设置光盘开机自动挂载 ide
[root@localhost ~]# echo "/dev/sr0 /mnt iso9660 defaults 0 0" >> /etc/fstab url
五:配置好本地yum源 spa
[root@localhost ~]# rm -rf /etc/yum.repos.d/* it
[root@localhost ~]# cat > /etc/yum.repos.d/rhel7.repo <<EOF class
> [rhel7-source] 配置
> name=rhel-source file
> baseurl=file:///mnt gc
> enabled=1 yum
> gpgcheck=0
> EOF
[root@localhost ~]# yum clean all#清空yum缓存
[root@localhost ~]# yum list#生成缓存列表