4 echo "==> A script to retrieve and filter the latest and fastest mirrorlist from the MirrorStatus page"
5 echo "==> Your mirrorlist /etc/pacman.d/mirrorlist.backup"
6 echo "==> Please wait!"
7 cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
8 reflector -rl 20 -o /etc/pacman.d/mirrorlist.1
9 rankmirrors -n 5 /etc/pacman.d/mirrorlist.1 > /etc/pacman.d/mirrorlist
10 rm -f /etc/pacman.d/mirrorlist.1
12 echo "==> In /etc/pacman.conf, in the [options] section, the following needs to be added:"
13 echo "==> XferCommand = exec /usr/bin/pacget %u %o"
27 rm /usr/bin/pacman-update-mirrorlist
28 rm -f /etc/pacget.stats
32 echo "==> Your mirrorlist /etc/pacman.d/mirrorlist.backup"