搭建yum本地源
1、虚拟机挂载光盘ios 完整版
2、linux主机中mount命令执行挂载
[root@node2 ~]# mount /dev/cdrom /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@node2 ~]# ls /mnt/
CentOS_BuildTag GPL Packages RPM-GPG-KEY-CentOS-6 RPM-GPG-KEY-CentOS-Testing-6
EFI images RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Debug-6 TRANS.TBL
EULA isolinux repodata RPM-GPG-KEY-CentOS-Security-6
[root@node2 ~]#
3、修改yum源配置文件
vim /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-local
baseurl=file:///mnt/
gpgcheck=0
4、重新生成yum缓存
Yum clean all
Yum makecache