Skip to content

Archlinux mirrorlist

Vladimir Bauer edited this page Jan 11, 2026 · 1 revision

Tip for archlinux users to extract top 10 https mirrors out of default /etc/pacman.d/mirrorlist

grep 'Server =' /etc/pacman.d/mirrorlist \
| sed '/http:\/\//d; s/\$repo/core/g; s/\$arch/x86_64\/core.db/g' \
| cut -d ' ' -f 3 \
| getparty --mirror.top 10 --mirror.pass 3 -m - \
| sed '/WARN/d; /ERRO/d; s/core/\$repo/g; s/x86_64.*$/\$arch/g' \
| cut -d ' ' -f 5

If you know better solution or can improve above one, please share.

Clone this wiki locally