Fedora 切换为阿里软件源

1、备份原软件源配置

cp /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.bak
cp /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.bak

2、下载新的软件源配置文件

wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo

3、更新缓存

dnf clean all
dnf makecache
原文地址:https://www.cnblogs.com/QingXiaxu/p/13128900.html