Difference between revisions of "Pacman-mirrors"
→Commands
imported>Fhdk |
imported>Fhdk |
||
Line 24: | Line 24: | ||
==TL:DR== | ==TL:DR== | ||
==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 - | Commands for info do not require superuser - changing systemfiles do. | ||
==== | ===Commands giving information=== | ||
====List available countries==== | |||
pacman-mirrors -l | pacman-mirrors -l | ||
==== | ====What branch am I on==== | ||
pacman-mirrors -aG | pacman-mirrors -aG | ||
==== | ===Commands using defaults=== | ||
sudo pacman-mirrors - | |||
====Create a mirrorlist==== | |||
sudo pacman-mirrors -f && sudo pacman -Syy | |||
==== | ====Limit to 5 mirrors==== | ||
sudo pacman-mirrors -f | An optional number can be supplied to limit the number of mirrors in the mirrorlist | ||
sudo pacman-mirrors -f 5 && sudo pacman -Syy | |||
====Mirrors for your country only==== | |||
Not all countries have mirrors - if so - all mirrors are used. | |||
sudo pacman-mirrors --geoip && sudo pacman -Syy | |||
==== | ===Commands with temporary effect=== | ||
==== | ====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==== | ||
sudo pacman-mirrors -b stable && sudo pacman -Syy | sudo pacman-mirrors -b stable && sudo pacman -Syy | ||
=== | ===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 mirror pool by countries==== | ||
sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy | sudo pacman-mirrors -cGermany,France,Austria && sudo pacman -Syy | ||
==== | ====Customizing mirror pool by interactive selection==== | ||
sudo pacman-mirrors -id && sudo pacman -Syy | sudo pacman-mirrors -id && sudo pacman -Syy | ||
==== | ====Use specific protocols (prioritized)==== | ||
sudo pacman-mirrors -aPhttps,http && sudo pacman -Syy | sudo pacman-mirrors -aPhttps,http && sudo pacman -Syy | ||
==== | ====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 | ||
==== | ====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=== | ||
sudo pacman-mirrors - | 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== |