When downloading packages, pacman uses the mirrors in the order they are listed in
/etc/pacman.d/endeavouros-mirrorlist The order servers appear in the list sets their priority.
It is not optimal to only rank mirrors based on speed since the fastest servers might be out-of-sync. Instead, make a list of mirrors sorted by their speed, then remove those from the list that are out of sync according to their status.
It is recommended to repeat this process periodically.
Archwiki have some instruction to do all this manually:
You can do this in different ways, on “pure” arch use this one:
For EndeavouOS we have a package in our Repository, as we may need to rank our own mirrors too one time, for now this is not nessesarry, as we do not have hundreds:
install the package:
sudo pacman -S reflector-auto
Sources for reflector-auto: github.com/endeavouros-team
edit /etc/reflector-auto.conf to include your country (+ country near you) and for other options see:
You will need to add only options:
sudo nano /etc/reflector-auto.conf
then add options like this:
-c Germany -c Poland -f 15 -p https -a 2
this will search for 15 best mirrors inside Germany and Poland among mirrors that have been updated within 2 last hours.
save the file by pressing this keycombination:
[Ctrl]+[X] and say yes to save the file.
the last step is to enable the reflector-auto timer to run this once a week:
sudo systemctl start reflector-auto.timer
sudo systemctl enable reflector-auto.timer
check if it is running:
systemctl status reflector-auto.timer
This will give something like this:
● reflector-auto.timer - Run reflector-auto periodically Loaded: loaded (/usr/lib/systemd/system/reflector-auto.timer; enabled; vendor preset: disabled) Active: active (waiting) since Tue 2019-08-20 12:17:00 CEST; 28min ago Trigger: Mon 2019-08-26 00:00:00 CEST; 5 days left
Aug 20 12:17:00 host systemd: Started Run reflector-auto periodically.