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

 

posted on 2020-06-15 07:42  QingXiaxu  阅读(2537)  评论(0编辑  收藏  举报

导航