Created
August 27, 2019 08:38
-
-
Save muhamadazmy/6dfc7dee2ee0fc248d9eb24693dc48ad to your computer and use it in GitHub Desktop.
Update arch linux mirrors
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
#!env sh | |
# this file depends on rankmirrors package | |
tmp=$(mktemp) | |
trap "rm -f ${tmp}" EXIT | |
curl "https://www.archlinux.org/mirrorlist/?country=BE&country=FR&country=DE&country=IL&protocol=http&protocol=https&ip_version=4&use_mirror_status=on" | sed "s/#Server/Server/g" > $tmp | |
rankmirrors ${tmp} | sudo tee /etc/pacman.d/mirrorlist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment