本地和網絡yum創建

本地源配置:

1 首先掛在光盤或鏡像到虛擬機相關目錄
2 創建/etc/repos.d/xxx.d(在這之前先備份好原有的配置文件為xxx.d.bak,文件的配置如下圖)
3 清理舊yum倉庫,生成新yum倉庫信息緩存并查看

TIM截圖20180415105751
網絡源配置:

1 下載新的CentOS-Base.repo 到/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2 之后運行yum makecache生成緩存,和上述本地源的最后步驟一致

 

本文來自投稿,不代表Linux運維部落立場,如若轉載,請注明出處:http://www.www58058.com/95528

(0)
屠年屠年
上一篇 2018-04-08
下一篇 2018-04-08

相關推薦

欧美性久久久久