# Fetch live pacman-mirrors and sort them by speed

Uses rankmirrors (aur) package to sort live mirrors from the mirrorlist and returns the top five.

Documentation
https://wiki.archlinux.org/title/Mirrors

# Usage

Needs rankmirrors from the AUR installed.

Generate the list:

curl -s "https://archlinux.org/mirrorlist/?country=DE&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -

Put it in /etc/pacman.d/mirrorlist and update the package cache.