天天看點

本地CD光牒制作yum源本地CD光牒制作yum源

本地CD光牒制作yum源

  1. 挂在光驅到/mnt目錄

    mount /dev/cdrom /mnt

  2. 備份yum.repos.d檔案

    cp -r /etc/yum.repos.d /etc/yum.repos.d_bak

  3. 編輯Centos-Media.repo檔案

    vi /etc/yum.repos.d/CentOS-Media.repo

    修改baseurl=file:///mnt
    本地CD光牒制作yum源本地CD光牒制作yum源
  4. 執行yum指令更新yum緩存

    yum clean all

    yum makecache

繼續閱讀