Sous Archlinux, pour créer un fichier mirroirs (/etc/pacman.d/mirrorlist) à jour et trié par vitesse de download, il suffit d’utiliser la commande reflector (à installer avec pacman -S reflector).

reflector -l 35 -p https --threads 5 --sort rate --save /etc/pacman.d/mirrorlist

Le paramètre le plus important est --sort :

  --sort {age,rate,country,score,delay}
                        Sort the mirrorlist. "age": last server
                        synchronization; "rate": download rate; "country":
                        server's location; "score": MirrorStatus score;
                        "delay": MirrorStatus delay.

Exemple de fichier /etc/pacman.d/mirrorlist à jour :

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector -l 35 -p https --sort rate --save /etc/pacman.d/mirrorlist
# When:       2017-04-11 19:12:10 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2017-04-11 19:12:04 UTC
# Last Check: 2017-04-11 18:39:57 UTC

Server = https://www.mailtunnel.eu/archlinux/$repo/os/$arch
Server = https://mirror.tyborek.pl/arch/$repo/os/$arch
Server = https://mirror.netcologne.de/archlinux/$repo/os/$arch
Server = https://mirror.js-webcoding.de/pub/archlinux/$repo/os/$arch
Server = https://mirror.vfn-nrw.de/archlinux/$repo/os/$arch
Server = https://mirror.bethselamin.de/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://mirror.jankoppe.de/$repo/os/$arch
Server = https://repo.itmettke.de/archlinux/$repo/os/$arch
Server = https://mirror.hactar.xyz/$repo/os/$arch
Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch
Server = https://archimonde.ts.si/archlinux/$repo/os/$arch
Server = https://archlinux.thelinuxnetworx.rocks/$repo/os/$arch
Server = https://pkg.adfinis-sygroup.ch/archlinux/$repo/os/$arch
Server = https://archlinux.beccacervello.it/archlinux/$repo/os/$arch
Server = https://mirror.one.com/archlinux/$repo/os/$arch
Server = https://mirror.dkm.cz/archlinux/$repo/os/$arch
Server = https://archlinux.dynamict.se/$repo/os/$arch
(...)

Permet également d’avoir quelques informations additionnelles comme la liste des répartitions des mirroirs par pays (avec reflector --list-countries) :

Australia              AU 12
Austria                AT  4
Belarus                BY  4
Belgium                BE  2
Bosnia and Herzegovina BA  4
Brazil                 BR  7
Bulgaria               BG  8
Canada                 CA 14
Chile                  CL  1
China                  CN  5
Colombia               CO  2
Croatia                HR  1
Czech Republic         CZ 16
Denmark                DK  7
Ecuador                EC  4
France                 FR 29
Germany                DE 92
Greece                 GR  7
Hong Kong              HK  2
Hungary                HU  2
Iceland                IS  3
India                  IN  2
Indonesia              ID  3
Iran                   IR  3
Ireland                IE  2
Israel                 IL  1
Italy                  IT  4
Japan                  JP  4
Kazakhstan             KZ  1
Latvia                 LV  2
Lithuania              LT  3
Luxembourg             LU  1
Macedonia              MK  4
Netherlands            NL 14
New Caledonia          NC  4
New Zealand            NZ  1
Norway                 NO  5
Philippines            PH  1
Poland                 PL  8
Portugal               PT  2
Qatar                  QA  2
Romania                RO  7
Russia                 RU  7
Serbia                 RS  1
Singapore              SG  3
Slovakia               SK  4
Slovenia               SI  3
South Africa           ZA  5
South Korea            KR  3
Spain                  ES  2
Sweden                 SE 15
Switzerland            CH  4
Taiwan                 TW  7
Thailand               TH  4
Turkey                 TR  1
Ukraine                UA  6
United Kingdom         GB  9
United States          US 63
Vietnam                VN  1

Ou détailler les informations mirroir par mirroir (par exemple via reflector --info -c France) :

http://mir.archlinux.fr/$repo/os/$arch
completion_pct  : 1.0
country         : France
country_code    : FR
delay           : 9659
duration_avg    : 0.0455581571744836
duration_stddev : 0.0116749250799903
isos            : True
last_sync       : 2017-04-11 17:26:38 UTC
protocol        : http
score           : 2.7402886378100293

http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
completion_pct  : 1.0
country         : France
country_code    : FR
delay           : 19065
duration_avg    : 0.37682580947876
duration_stddev : 0.55227477845535
isos            : True
last_sync       : 2017-04-11 14:26:23 UTC
protocol        : http
score           : 6.224933921267443
(...)