在使用dnf
命令安裝軟件時,有時會遇到下載速度非常慢的情況,解決方法就是使用國內的開源鏡像站。
阿里雲開源鏡像站 http://mirrors.aliyun.com/
本文來自 http://mirrors.aliyun.com/help/fedora
阿里雲開源鏡像站的使用
1、備份
mv /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.backup
mv /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.backup
2、下載新文件
下載新的fedora.repo
和fedora-updates.repo
到/etc/yum.repos.d/
fedora
wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
fedora updates
wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
3、生成緩存
之後運行sudo yum makecache
生成緩存