1. 程式人生 > >CentOS7 設定yum安裝的本地資源為光碟資源

CentOS7 設定yum安裝的本地資源為光碟資源

1.yum資源配置檔案路徑:etc/yum.repos.d

2.yum資源配置檔案:etc/yum.repos.d/CentOS-Base.repo、etc/yum.repos.d/CentOS-Media.repo

3.禁用網路資源:修改配置檔案 etc/yum.repos.d/CentOS-Base.repo,增加引數 enabled=0,如下圖

4.啟用光碟資源:修改配置檔案 etc/yum.repos.d/CentOS-Media.repo,增加引數 enabled=1,如果光碟掛載的路徑不在baseurl裡,則增加上去,如下圖