Difference between revisions of "Pacman-mirrors"

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


====Up-to-date mirrorlist====
===Commands===
All commands uses the available 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.


  sudo pacman-mirrors -f 0 && sudo pacman -Syy
====INFO: List available countries====
  pacman-mirrors -l


The number can be changed to limit the number of mirrors in the mirrorlist
====INFO: What branch am I on=====
pacman-mirrors -aG


====List available countries====
====MOD: Customizing mirror pool====
pacman-mirrors -l && sudo pacman -Syy
You can customized the mirror pool to your preference.
Don't limit yourself too much as pacman-mirrors '''only''' writes up-to-date mirrors to your mirrorlist.


====Mirrors for your country====
====MOD: Customize for your country only====
  sudo pacman-mirrors --geoip && sudo pacman -Syy
  sudo pacman-mirrors --geoip && sudo pacman -Syy


====Mirrors for preferred countries====
====MOD: Customize mirror pool by countries====
  sudo pacman-mirrors -c Germany,France,Austria && sudo pacman -Syy
  sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy
 
====MOD: Customizing the mirror pool by interactive selection====
sudo pacman-mirrors -id && sudo pacman -Syy
 
====MOD: create a mirrorlist====
sudo pacman-mirrors -f0 && sudo pacman -Syy


====Up-to-date mirrors on CURRENT branch====
The number can be changed to limit the number of mirrors in the mirrorlist
sudo pacman-mirrors -f 5 && sudo pacman -Syy


====Temporarily switch to unstable branch====
====MOD: Limit to 5 mirrors=====
sudo pacman-mirrors -f5 && sudo pacman -Syy
 
====MOD: Temporarily switch to unstable branch====
  sudo pacman-mirrors -b unstable && sudo pacman -Syy
  sudo pacman-mirrors -b unstable && sudo pacman -Syy


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


====Having fun handpicking mirrors and protocols====
====MOD: Permanently switch branch====
sudo pacman-mirrors -i --default && sudo pacman -Syy
  sudo pacman-mirrors -aB unstable && sudo pacman -Syy
 
====Permanently switch branch====
  sudo pacman-mirrors -a --set-branch -b unstable && sudo pacman -Syy
 
====What branch am I on====
pacman-mirrors -a --get-branch


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


====Use all protocols====
====MOD: Use all protocols====
  sudo pacman-mirrors -a --protocols all && sudo pacman -Syy
  sudo pacman-mirrors -aPall && sudo pacman -Syy


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