Ask Your Question

How to choose a specific mirror source?

asked 2013-02-05 12:53:02 +0000

nanda_odk gravatar image

updated 2013-02-05 12:55:25 +0000

How can I force Yum to download from specific mirror source from the public list: http://mirrors.fedoraproject.org/publiclist/?

Asking since, the downloads are painfully slow and other times they fail to connect and fetch.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2013-02-05 13:32:21 +0000

updated 2013-12-22 03:05:51 +0000

You can manually set mirror in /etc/yum.repos.d/fedora.repo using variable baseurl.

Uncomment the variable baseurl and set its value with desired mirror.

Comment mirrorlist variable.

Similarly do the same in


Then execute :

yum clean

yum update
edit flag offensive delete link more


This answers what the OP asked. The fastest-mirror tip is related, but not the actual answer to the asked question. Marking this as correct.

FranciscoD_ ( 2013-12-22 03:07:38 +0000 )edit

how did you add IIT madras mirror? Please tell me the contents of /etc/yum.repos.d/fedora.repo

SantoshHoropter ( 2015-01-03 16:01:55 +0000 )edit

answered 2013-02-05 13:02:46 +0000

hhlp gravatar image

updated 2013-02-05 13:10:10 +0000

You can install the fastestmirror plugin by using this command:

sudo yum install yum-plugin-fastestmirror
sudo yum clean
sudo yum update

This extension is designed to list mirrors by response speed before a download begins.

is not necessary to configure anything but if you would like please read the following guide :

edit flag offensive delete link more


+1. The yum clean alone is often helpful when dealing with mirrors that have been slow to sync.

randomuser ( 2013-02-06 07:44:41 +0000 )edit

Thanks this worked fine

Ibn Saeed ( 2014-03-19 04:35:13 +0000 )edit

Cannot yet vote, really useful, thanks. :)

Fabián Heredia Montiel ( 2014-07-27 02:56:17 +0000 )edit

answered 2015-08-28 09:44:21 +0000

blaztinn gravatar image

If you are using dnf you can add the fastestmirror option to /etc/dnf/dnf.conf:


This will enable selecting the fastest mirror before downloading.

Note: dnf has this functionality in its package so there is no need to install yum-plugin-fastestmirror as with yum.

edit flag offensive delete link more


this works thank you for the information

SACViper ( 2015-10-30 21:24:21 +0000 )edit

Thanks for the info! This worked great, and updates/software installs are now much faster. Wish there was a GUI to manage these things in "Software"

radub ( 2016-03-27 17:07:43 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2013-02-05 12:53:02 +0000

Seen: 45,547 times

Last updated: Dec 22 '13