How to change server in DNF

时间:2016-04-21 22:20:21

标签: linux fedora

I'm trying to install a package with dnf command utility, and it freezes on downloading stage. I think, it's a server problem. How I can change a server, which dnf uses to download from?

Thank you for answers.

1 个答案:

答案 0 :(得分:1)

服务器信息存储在repo文件中:

/etc/yum.repos.d/fedora.repo

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

只需要注释掉镜像网址,然后取消注册baseurl行并运行dnf update

您也可以从here

添加新镜像

建议您使用以下方法激活系统上的RPMfusin:

su
#type your root password
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm