Skip to content

Instantly share code, notes, and snippets.

@jhaubrich
Created June 8, 2018 21:07
Show Gist options
  • Save jhaubrich/1ebf049db7a27fcaf6f8c3c6f1e4a13d to your computer and use it in GitHub Desktop.
Save jhaubrich/1ebf049db7a27fcaf6f8c3c6f1e4a13d to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
#
# Use `reflector` to update `/etc/pacman.d/mirrorlist` and sort by download rate
#
wget -O /etc/pacman.d/mirrorlist.backup https://www.archlinux.org/mirrorlist/all/ && cp /etc/pacman.d/mirrorlist.backup /etc/pacman.d/mirrorlist && reflector --verbose --country 'United States' -l 200 -p http --sort rate --save /etc/pacman.d/mirrorlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment