mount /dev/cdrom /mnt #挂载系统光盘vi /etc/yum.repos.d/cdrom内容:[cdrom]name=system cdrombaseurl=file:///mnt/enabled=1gpgcheck=0这样就把yum源设到了系统光盘