Difference between revisions of "Pacman-mirrors"

imported>Fhdk
imported>Fhdk
Line 197: Line 197:
Don't limit yourself too much. Pacman-mirrors will only use up-to-date mirrors in the final mirrorlist.
Don't limit yourself too much. Pacman-mirrors will only use up-to-date mirrors in the final mirrorlist.


===The customizing===
===Customizing the pool===


The ''--interactive'' approach which uses your current active mirror pool (could be a personal pool)
'''First option'' is using ''--interactive''. It uses your current mirror pool(wether default or custom)
  $ sudo pacman-mirrors -i && sudo pacman -Syy
  $ sudo pacman-mirrors -i && sudo pacman -Syy


The ''--interactive'' and ''--default'' approach
'''Second option'' is using ''--interactive --default''. This force the use of the official mirror pool
  $ sudo pacman-mirrors -id && sudo pacman -Syy
  $ sudo pacman-mirrors -id && sudo pacman -Syy


The ''--country'' approach
'''Third option''' is supplying a list of countries with ''--country''
  $ sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy
  $ sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy


Pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. The resulting mirror pool will be used every time you run pacman-mirrors.
With option 1 and 2 pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. The resulting mirror pool will be saved to <code>/var/lib/pacman-mirrors/custom-mirrors.json</code> and used every time you run pacman-mirrors.


When you want to reset the list to default run
Option 3 creates a reliable up-to-date mirrorlist from the mirrors available in the pool.
 
===Resetting custom pool===
'''First option''' to reset is to default mirror pool


  $ sudo pacman-mirrors -call && sudo pacman -Syy
  $ sudo pacman-mirrors -call && sudo pacman -Syy


Another way of resetting the custom mirror file is to use --default with --interactive
'''Second option''' to is to use ''--default'' with ''--interactive''


  $ sudo pacman-mirrors -id && sudo pacman -Syy
  $ sudo pacman-mirrors -id && sudo pacman -Syy
* You will be presented with a list with all and every mirror and you can pick your selection.
* You will be presented with a list with all and every mirror and you can pick your selection.


A third way is to supply a list of countries
'''Third option''' is to supply a list of countries
   $ sudo pacman-mirrors -cGermany,France,Austria
   $ sudo pacman-mirrors -cGermany,France,Austria
* If you supply the same preferred countries on every reset you will get your mirror pool updated with added or removed mirrors.
* If you supply the same preferred countries on every reset you will get your mirror pool updated with added or removed mirrors.
Anonymous user