Difference between revisions of "Pacman-mirrors"

imported>Fhdk
imported>Fhdk
Line 24: Line 24:
==TL:DR==
==TL:DR==


===Commands===
==Commands==
All commands uses the available mirror pool.
All commands uses the available mirror pool.
The mirror pool can be the default full mirror pool or a customized mirror pool.
The mirror pool can be the default full mirror pool or a customized mirror pool.
Commands for info do not require superuser - modifications do.
Commands for info do not require superuser - changing systemfiles do.


====INFO: List available countries====
===Commands giving information===
 
====List available countries====
  pacman-mirrors -l
  pacman-mirrors -l


====INFO: What branch am I on====
====What branch am I on====
  pacman-mirrors -aG
  pacman-mirrors -aG


====DEFAULT: Mirrors for your country only====
===Commands using defaults===
  sudo pacman-mirrors --geoip && sudo pacman -Syy
 
====Create a mirrorlist====
  sudo pacman-mirrors -f && sudo pacman -Syy


====DEFAULT: create a mirrorlist====
====Limit to 5 mirrors====
  sudo pacman-mirrors -f[number] && sudo pacman -Syy
An optional number can be supplied to limit the number of mirrors in the mirrorlist
  sudo pacman-mirrors -f 5 && sudo pacman -Syy


Optional a number can be given to limit the number of mirrors in the mirrorlist
====Mirrors for your country only====
Not all countries have mirrors - if so - all mirrors are used.
sudo pacman-mirrors --geoip && sudo pacman -Syy


====DEFAULT: Limit to 5 mirrors====
===Commands with temporary effect===
sudo pacman-mirrors -f 5 && sudo pacman -Syy


====DEFAULT: Temporarily switch to unstable branch====
====Temporarily switch to unstable branch====
  sudo pacman-mirrors -b unstable && sudo pacman -Syy
  sudo pacman-mirrors -b unstable && sudo pacman -Syy


====DEFAULT: Switch back to stable branch====
====Switch back to stable branch====
  sudo pacman-mirrors -b stable && sudo pacman -Syy
  sudo pacman-mirrors -b stable && sudo pacman -Syy


====CUSTOMIZE: Customizing mirror pool====
===Commands customizing the mirror pool===
 
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: Customize mirror pool by countries====
====Customize mirror pool by countries====
  sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy
  sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy


====CUSTOMIZE: Customizing the mirror pool by interactive selection====
====Customizing mirror pool by interactive selection====
  sudo pacman-mirrors -id && sudo pacman -Syy
  sudo pacman-mirrors -id && sudo pacman -Syy


====CUSTOMIZE: Use specific protocols (prioritized)====
====Use specific protocols (prioritized)====
  sudo pacman-mirrors -aPhttps,http && sudo pacman -Syy
  sudo pacman-mirrors -aPhttps,http && sudo pacman -Syy


====CUSTOMIZE: Permanently switch branch and use German mirrors====
====Permanently switch to unstable and use German mirrors====
  sudo pacman-mirrors -cGermany -aB unstable && sudo pacman -Syy
  sudo pacman-mirrors -cGermany -aB unstable && sudo pacman -Syy


====CUSTOMIZE: Permanently switch branch and use German mirrors with https====
====Permanently switch branch and use German mirrors with https====
  sudo pacman-mirrors -cGermany -aB unstable -P https && sudo pacman -Syy
  sudo pacman-mirrors -cGermany -aB unstable -P https && sudo pacman -Syy


====RESET: Revert all changes ====
===Reset===
  sudo pacman-mirrors -c all -aP all && sudo pacman -Syy
You will come to a point where you want to reset to defaults
 
====Revert all changes ====
  sudo pacman-mirrors -call -a -Pall -Bstable && sudo pacman -Syy


==Overview==
==Overview==
Anonymous user