Fedora 27加國內更新源不需要刪原來倉庫檔案
百度很多文章說刪掉/etc/yum.repos.d目錄下所有的原來的檔案,
好點的讓你備份一下。
其實我覺得沒有必要,留著原始源總歸踏實一些。
要國內源和原始國外源並存,需要安裝一個選最快的源的程式:
sudo dnf install yum-fastestmirror
然後就可以安裝國內源了:
cd /etc/yum.repos.d
下載(用其中一個就行,全用也不錯,連結來自網路):
阿里巴巴的
sudo wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
sudo wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
網易:
sudo wget http://mirrors.163.com/.help/fedora-163.repo
sudo wget http://mirrors.163.com/.help/fedora-updates-163.repo
搜狐
sudo wget http://mirrors.sohu.com/help/fedora-sohu.repo
sudo wget http://mirrors.sohu.com/help/fedora-updates-sohu.repo
IDC雲
sudo wget http://mirrors.yun-idc.com/fedora-cds.repo
sudo wget http://mirrors.yun-idc.com/fedora-updates-cds.repo
做完上述動作或許還要更新快取:
yum makecache
然後再用DNF安裝就能用這些國內源了,速度都很快。
又:清華和中科大的源也是非常好的,怎樣新增在他們開源映象網站上都有。
地址如下:
https://mirrors4.tuna.tsinghua.edu.cn/help/fedora/
http://mirrors.ustc.edu.cn/help/fedora.html