在使用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/
fedorawget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
fedora updateswget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
3、生成缓存之后运行sudo yum makecache生成缓存
其他开源镜像站搜狐 http://mirrors.sohu.com
网易 http://mirrors.163.com
更多 https://www.douban.com/group/topic/54764326