Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get fast pacman mirrors on Arch
#!/bin/bash
country=FR
cd /tmp
wget "https://www.archlinux.org/mirrorlist/?country=${country}&protocol=http&protocol=https&ip_version=4&ip_version=6" -O mirrorlist.tmp
sed -i 's/^#Server/Server/' mirrorlist.tmp
rankmirrors mirrorlist.tmp > mirrorlist
sudo cp mirrorlist /etc/pacman.d/mirrorlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.