1、mkdir /media/cd1 /media/cd2
2、mount -o loop CentOS-6.8-x86_64-bin-DVD1.iso /media/cd1
3、mount -o loop CentOS-6.8-x86_64-bin-DVD2.iso /media/cd2
4、vi /etc/yum.repos.d/cd.repo 内容如下:
[cd ]
name=cd
baseurl=file:///media/cd1 file:///media/cd2
enabled=1
gpgcheck=0
5、yum clean all;yum update
原文链接:https://www.f2er.com/centos/381527.html