Skip to main content

Install Reflector on Arch Linux

Sebastian

server-rack

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