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
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====
The countries is an example - check the country list if in doubt.
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====
Using the --default will list all available mirrors and procotols in a gui windows allowing to sort the columns and interactively select according to your preferences.
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
When you save your selection a custom mirror pool is created and will serve as your mirror pool.


====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====
The country is an example - check the country list if in doubt.
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====
The country is an example - check the country list if in doubt.
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


Anonymous user