Install Reflector on Arch Linux
Reflector is a small Python3 script that sort through the Arch Linux mirrors based on parameters of your choice and updates your mirrorlist.
More info: Reflector - ArchWiki | Project website - xyne
Installation
pacman -S reflector
Usage
reflector --help
will show you the available commands and their options.
The following command will update your mirrorlist with the 50 fastest mirrors that have support for both HTTPS and IPV6.
reflector --verbose --completion-percent 100 --ipv6 --protocol https --score 50 --sort rate --save /etc/pacman.d/mirrorlist
Service
Reflector can run automatically in the background at chosen intervalls. The default timer will run reflector once a week.
If you want the options from the example earlier make the following changes.
/etc/xdg/reflector/reflector.conf
--save /etc/pacman.d/mirrorlist
--completion-percent 100
--protocol https
--ipv6
--score 50
--sort rate
systemctl enable reflector.timer
systemctl start reflector.timer
systemctl start reflector.service