Ask Your Question

How to choose a specific mirror source?

asked 2013-02-05 06:53:02 -0500

nanda_odk gravatar image

updated 2013-02-05 06:55:25 -0500

How can I force Yum to download from specific mirror source from the public list:

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 07:32:21 -0500

rohitsd gravatar image

updated 2013-12-21 21:05:51 -0500

FranciscoD_ gravatar image

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_ gravatar imageFranciscoD_ ( 2013-12-21 21:07:38 -0500 )edit

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

SantoshHoropter gravatar imageSantoshHoropter ( 2015-01-03 10:01:55 -0500 )edit

answered 2015-08-28 04:44:21 -0500

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 gravatar imageSACViper ( 2015-10-30 16:24:21 -0500 )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 gravatar imageradub ( 2016-03-27 12:07:43 -0500 )edit

answered 2013-02-05 07:02:46 -0500

hhlp gravatar image

updated 2013-02-05 07:10:10 -0500

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 gravatar imagerandomuser ( 2013-02-06 01:44:41 -0500 )edit

Thanks this worked fine

Ibn Saeed gravatar imageIbn Saeed ( 2014-03-18 23:35:13 -0500 )edit

Cannot yet vote, really useful, thanks. :)

Fabián Heredia Montiel gravatar imageFabián Heredia Montiel ( 2014-07-26 21:56:17 -0500 )edit

Question Tools


Asked: 2013-02-05 06:53:02 -0500

Seen: 57,655 times

Last updated: Dec 21 '13