Skip to content

Instantly share code, notes, and snippets.

@angristan
Created February 13, 2019 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angristan/9bf356ac086ec0df04f5bf18fd84f1df to your computer and use it in GitHub Desktop.
Save angristan/9bf356ac086ec0df04f5bf18fd84f1df to your computer and use it in GitHub Desktop.
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