Optimizing Pacman Mirrors
References
- Pacman Mirrorlist Generator
- Reflector- Reflector can be used to grab the latest mirrorlist and sort them by speed, also making sure they are up-to-date
- RankMirrors to setup the Fastest Download Server in Manjaro
STEP 1 - BACKUP your mirrorlist first
In case something goes wrong, you can simply restore the original list … though there ARE OTHER ways around the issue of a goofup. Here is an example.
To backup
sudo cp /etc/pacman.d/mirrorlist mirrorlist.backupTo restore
sudo cp /etc/pacman.d/mirrorlist.backup mirrorlistReflector - Examples for Arch
- Filter the first 10 mirrors, sort them by download rate and save the results to /etc/pacman.d/mirrorlist: reflector --verbose -l 10 --sort rate --save /etc/pacman.d/mirrorlist`
- Rate the 100 most recently synchronized HTTP servers, sort them by download rate, and save to the file /etc/pacman.d/mirrorlist: reflector -l 100 -p http --sort rate --save /etc/pacman.d/mirrorlist
- Rate the 50 most recently synchronized HTTP servers located in the US, sort them by download rate, and save to the file /etc/pacman.d/mirrorlist:reflector --country 'United States' -l 50 -p http --sort rate --save /etc/pacman.d/mirrorlist
Manjaro
- Update the Mirrorlist sudo pacman-mirrors -g
-
- Syncing your Pacman Database
- The Pacman database has a list of installable packages and by syncing this database, you assure yourself that your system has the newest list of packages available TO DOWNLOAD
Updating via pacman is planned for an entirely other section, by the way