以centos 6.2为例, 加载光盘或iso文件,mount -o loop /dev/scd0 /media/cdrom alias yum="yum --disablerepo=\* --enablerepo=c6-media"