Stanislav
Stanislav

Reputation: 29

How to change server in DNF

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.

Upvotes: 2

Views: 3633

Answers (1)

GAD3R
GAD3R

Reputation: 4635

The server information is stored in the repo file:

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

and

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

just you need to comment out the mirror url, and uncomment the baseurl lines and run dnf update

Also you can add a new mirror from here

it's recommended to activate RPMfusin on your system with:

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

Upvotes: 1

Related Questions