fedora Linux 配置阿里云开源镜像站

在使用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.repofedora-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生成缓存

其他开源镜像站

搜狐 http://mirrors.sohu.com
网易 http://mirrors.163.com

更多 https://www.douban.com/group/topic/54764326

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章