Created
February 27, 2022 18:56
-
-
Save surajRathi/6d934cf5529bd18ac9919cc63c9a229c to your computer and use it in GitHub Desktop.
Arch Linux rankmirrors
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
#!/usr/bin/sh | |
sed 's:#Server:Server:' /etc/pacman.d/mirrorlist.pacnew | grep -Ev "^#|^$" | rankmirrors - -n 10 | sudo tee /etc/pacman.d/mirrorlist && sudo rm /etc/pacman.d/mirrorlist.pacnew |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment