Skip to content

Instantly share code, notes, and snippets.

@yupyupp
Created August 8, 2016 19:25
Show Gist options
  • Save yupyupp/c3d9578355d6aa58a7e2ce84c0e2bc43 to your computer and use it in GitHub Desktop.
Save yupyupp/c3d9578355d6aa58a7e2ce84c0e2bc43 to your computer and use it in GitHub Desktop.
cron script to rank the Arch Linux mirrors
#!/bin/sh
# Place in /etc/cron.weekly
/usr/bin/sed -e 's/^#//' /etc/pacman.d/mirrorlist.pacnew > /etc/pacman.d/mirrorlist.nocomment
/usr/bin/rankmirrors -n 25 /etc/pacman.d/mirrorlist.nocomment > /etc/pacman.d/mirrorlist
/usr/bin/pacman -Syy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment