Created
February 13, 2019 12:39
-
-
Save angristan/9bf356ac086ec0df04f5bf18fd84f1df to your computer and use it in GitHub Desktop.
Get fast pacman mirrors on Arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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