ARCHLINUX – Sorting mirror by speed

glitchlist Uncategorized Leave a Comment

Install a pacman-contrib

pacman -S pacman-contrib

Back up the existing /etc/pacman.d/mirrorlist:

cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

Adapt mirrorlist.backup with server to be tested

To uncomment every mirror :

sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup

Rank the best 12 mirror :

rankmirrors -n 12 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist

Well DONE!

Leave a Reply

Your email address will not be published. Required fields are marked *