updatemirrorlist.sh 274 B

123456
  1. #! /bin/bash
  2. sudo rm /etc/pacman.d/mirrorlist.backup
  3. sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
  4. sudo sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.pacnew
  5. sudo sh -c "rankmirrors -n 30 /etc/pacman.d/mirrorlist.pacnew > /etc/pacman.d/mirrorlist"