Skip to content

Instantly share code, notes, and snippets.

@coenraadhuman
Created September 10, 2019 04:17
Show Gist options
  • Save coenraadhuman/65a1503c8eb0980f03a858d794900b8e to your computer and use it in GitHub Desktop.
Save coenraadhuman/65a1503c8eb0980f03a858d794900b8e to your computer and use it in GitHub Desktop.
Update Arch Mirrors

Automated

Mirrors will be sorted by their current response times and then te mirror list will be exported and saved to the following directory:

/etc/pacman.d/mirrorlist
  • Fetch and add each and every mirror to the list:
sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
  • Limit the number of mirrors being fetched, add a number after —fasttrack:
sudo pacman-mirrors --fasttrack 10 && sudo pacman -Syyu
  • By country:
sudo pacman-mirrors --country South_Africa && sudo pacman -Syyu

Interactive

  • Ability to choose mirrors:
sudo pacman-mirrors --interactive && sudo pacman -Syyu

Mirror Synchronising

To apply the new mirror list to your system such that pacman will start using it for next updates, you must synchronize the database:

sudo pacman -Syyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment