首页 > 编程知识 正文

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

时间:2023-05-05 22:34:54 阅读:286804 作者:3092

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

其他开源镜像站

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

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

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。