Difference between revisions of "Pacman-mirrors"
→Commands customizing the mirror pool: Clarifying the creation of custom mirror pool and added the --continent argument
imported>Peter li m (→Forum posts) |
imported>Fhdk (→Commands customizing the mirror pool: Clarifying the creation of custom mirror pool and added the --continent argument) |
||
Line 75: | Line 75: | ||
You can customize the mirror pool to your preference. | You can customize the mirror pool to your preference. | ||
BUT Don't limit yourself too much as pacman-mirrors '''only''' writes up-to-date mirrors to your mirrorlist. | BUT Don't limit yourself too much as pacman-mirrors '''only''' writes up-to-date mirrors to your mirrorlist. | ||
====Customize mirror pool by continent==== | |||
Create a custom mirror pool using mirrors from the continent determined by querying a geolocation service | |||
sudo pacman-mirrors --continent && sudo pacman -Syyu | |||
====Customize mirror pool by countries==== | ====Customize mirror pool by countries==== | ||
Create a custom mirror pool using mirrors from Germany, France and Austria | |||
sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu | sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu | ||
====Customize mirror pool by interactive selection==== | ====Customize mirror pool by interactive selection==== | ||
Create a custom mirror pool using the '''--default''' mirror pool '''--interactive''' will list all available mirrors and procotols in a gui windows allowing to sort the columns and interactively select according to your preferences. | |||
sudo pacman-mirrors --interactive --default && sudo pacman -Syyu | sudo pacman-mirrors --interactive --default && sudo pacman -Syyu | ||
====Use specific protocols (prioritized)==== | ====Use specific protocols (prioritized)==== | ||
Rank the current mirror pool using only https and http protocol | |||
sudo pacman-mirrors --api --protocol https,http && sudo pacman -Syyu | sudo pacman-mirrors --api --protocol https,http && sudo pacman -Syyu | ||
====Switch branch to unstable and use German mirrors==== | ====Switch branch to unstable and use German mirrors==== | ||
Change the system branch to unstable and create a custom mirror pool using mirrors from Germany | |||
sudo pacman-mirrors --country Germany --api --set-branch unstable && sudo pacman -Syyu | sudo pacman-mirrors --country Germany --api --set-branch unstable && sudo pacman -Syyu | ||
==== Switch branch and use German mirrors with https==== | ==== Switch branch and use German mirrors with https==== | ||
Change the system branch to unstable, set configuration to use https only and create a custom mirror pool using mirrors from Germany | |||
sudo pacman-mirrors --country Germany --api --set-branch unstable --protocol https && sudo pacman -Syyu | sudo pacman-mirrors --country Germany --api --set-branch unstable --protocol https && sudo pacman -Syyu | ||