Gentlemen, a bit of help again, please
As I told you in an earlier post, I come from Manjaro and in it I was using the
to rank my mirrorlist.
I don’t know how to use reflector. Actually I never used reflector before.
Thus how can I enable
or, if it’s impossible, teach me how to use reflector, please.
Best idea is just to read up at the wiki
There are a couple of examples there how to use it
And may I apply here what I learn there?
Of course. ArchLabs is essentially Arch Linux with our additions.
reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist should to the trick for you.
I have this function in my
~/.zshrc (or equivalent for your shell) that will work for both reflector and rankmirrors (part of pacman-contrib). You’ll find it in your
mir() # update pacman mirror list
if hash reflector >/dev/null 2>&1; then
su -c 'reflector --score 100 -l 50 -f 10 --sort rate --save /etc/pacman.d/mirrorlist --verbose'
elif hash rankmirrors >/dev/null 2>&1; then
su -c "curl -L '$s' | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -v -t -n 10 - > /etc/pacman.d/mirrorlist"
printf "this requires reflector or rankmirrors installed\n"; return 1
Mind the hardcoded bit for rankmirrors in the actual mirror source
?country=US&country=CA you’ll want to change these to country codes near you, for example NZ and AU would use
?country=NZ&country=AU. This only matters if you don’t have reflector.
So you can just open a shell and run
mir you’ll be prompted for password then a list of all the mirrors it’s sorting followed by the ranked list and the fastest 10 are dumped to
You can also just change the name of the function if you prefer something more familiar.
Hi,i use hook the wiki arch reflector,posted form @Dobbie,i also find it useful when mirrorlist updates arrive.