一、mkdir /media/cd1 /media/cd2oop
二、mount -o loop CentOS-6.8-x86_64-bin-DVD1.iso /media/cd1url
三、mount -o loop CentOS-6.8-x86_64-bin-DVD2.iso /media/cd2date
四、vi /etc/yum.repos.d/cd.repo 內容以下:file
[cd ]gc
name=cd yum
baseurl=file:///media/cd1 file:///media/cd2di
enabled=1loop
gpgcheck=0vi
五、yum clean all;yum updateab