柚子快報激活碼778899分享:Linux更換yum源詳解
柚子快報激活碼778899分享:Linux更換yum源詳解
Linux更換yum源詳解
一、Linux更換yum源的目的
Linux系統(tǒng)默認的yum源是國外的,下載時速度非常慢,或者有些軟件無法下載。所以要更換yum源來加快軟件下載速度。
二、Linux更換yum源
1、阿里云官方教程:
https://developer.aliyun.com/article/1245499?spm=a2c6h.14164896.0.0.61c810a3DS886D
2、手動更換yum源
#安裝wget軟件 如果沒有安裝wget命令
yum install -y wget
#備份舊的yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#下載新的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#更新yum緩存
yum clean all
yum makecache
3、使用第三方工具更換yum源
常見的第三方工具有yum-config-manager和yum源管理器等。以下是使用yum-config-manager更換CentOS 7 yum源的示例:
#安裝yum-utils
yum -y install yum-utils
#更改yum源
yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo
#更新yum緩存
yum makecache
三、常見的yum源選取
1、阿里云yum源
#CentOS 7 阿里云yum源
http://mirrors.aliyun.com/repo/Centos-7.repo
2、清華大學yum源
#CentOS 7 清華大學yum源
http://mirrors.tuna.tsinghua.edu.cn/help/centos/
3、163yum源
#CentOS 7 163yum源
http://mirrors.163.com/.help/CentOS7-Base-163.repo
柚子快報激活碼778899分享:Linux更換yum源詳解
相關(guān)閱讀
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。