本地CD光牒制作yum源
- 挂在光驅到/mnt目錄
mount /dev/cdrom /mnt
- 備份yum.repos.d檔案
cp -r /etc/yum.repos.d /etc/yum.repos.d_bak
- 編輯Centos-Media.repo檔案
修改baseurl=file:///mntvi /etc/yum.repos.d/CentOS-Media.repo
本地CD光牒制作yum源本地CD光牒制作yum源 - 執行yum指令更新yum緩存
yum clean all
yum makecache