1. 链接光盘
    mkdir /mnt/cdrom 创建挂载目录
    并且挂载mount /dev/cdrom /mnt/cdrom


    wKiom1g3qSnReLRIAABTfKjSVRw958.png-wh_50

    wKioL1g3qSnBzKekAAAFktE0CFk867.png-wh_50


  2. cd /etc/yum.repos.d
    里面有四个文件
    其中,Centos—Media.repo是本地yum源。其中三个是网络yum 源


  3. 把其中三个文件的名字改掉

    wKiom1g3qSqzuhZwAAAJF0fGTeg968.png-wh_50

  4. 编辑Centso-Madia.repo

    wKioL1g3qSqxrR39AAAf1x4O85I800.png-wh_50wKiom1g3qSvhrqW-AAAJ0qRNgu8873.png-wh_50