How to actually enable the mirror? #6
-
Hello! Thank you for the tool, it seems very useful for a large number of people. I've used the tool and have figured out the mirror I'd like to use. The question I have is, how do I actually get DNF to use the mirror I want? Looking on the internet did not really provide any answers I thought were useful. I didn't think this warranted an issue, so I'm starting a Discussion instead. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you! If you've figured out which repo you want to use, copy the url like I did in this screenshot Now open Comment the In the baseurl paste your Here I've changed |
Beta Was this translation helpful? Give feedback.
Thank you!
If you've figured out which repo you want to use, copy the url like I did in this screenshot
Now open
/etc/yum.repos.d/fedora.repo
with any text editor as root and you'll see something kinda similarComment the
metalink
line; it checks & selects repo automaticallyand uncomment
baseurl
; it hard codes repoIn the baseurl paste your
https://{url}/fedora/linux
and rest will be sameIn the example my repo url was
https://codingflyboy.mm.fcix.net/fedora/linux/
and the rest/releases/$releasever/Everything/$basearch/os/
will be sameHere I've changed
/etc/yum.repos.d/fedora.repo
, you can change other files of/etc/yum.repos.d
too. Just check if the mirror has the resources or not.…