Fedora 27加国内更新源不需要删原来仓库文件

本文介绍如何在Fedora系统中配置多个国内软件源,包括阿里云、网易、搜狐等,通过安装yum-fastestmirror选择最快源,提高软件包的下载速度,并保留原始国外源作为备用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

百度很多文章说删掉/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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值