Manjaro Difference between revisions of "Pacman-mirrors"

Difference between revisions of "Pacman-mirrors"

From Manjaro
m (added languages and translate tags)
(Marked this version for translation)
Line 2: Line 2:
__TOC__
__TOC__
<translate>
<translate>
== Pacman-Mirrors ==
== Pacman-Mirrors == <!--T:1-->


<!--T:2-->
Pacman-mirrors is a Manjaro specific utility for generating and maintaining the system mirrorlist. This article covers current version 4.x.
Pacman-mirrors is a Manjaro specific utility for generating and maintaining the system mirrorlist. This article covers current version 4.x.
Pacman-mirrors uses the information available on the [http://repo.manjaro.org Mirrorservice]
Pacman-mirrors uses the information available on the [http://repo.manjaro.org Mirrorservice]


=== Purpose ===
=== Purpose === <!--T:3-->
Manjaro uses pacman for system maintenance, updates and new installs. For pacman to function, a list of servers, or more commonly known as mirrors, with Manjaro software packages is required. As Manjaro has many mirrors all over the world it is feasible to use the mirrors closest to your location and preferably also up-to-date.
Manjaro uses pacman for system maintenance, updates and new installs. For pacman to function, a list of servers, or more commonly known as mirrors, with Manjaro software packages is required. As Manjaro has many mirrors all over the world it is feasible to use the mirrors closest to your location and preferably also up-to-date.


=== Use ===
=== Use === <!--T:4-->
For most functions, a working internet connection is required. From v4, Pacman-Mirrors will check if network is online. It is doing so by querying some generic websites. The sites are chosen due to their general avaiability.
For most functions, a working internet connection is required. From v4, Pacman-Mirrors will check if network is online. It is doing so by querying some generic websites. The sites are chosen due to their general avaiability.


<!--T:5-->
# wikipedia.org
# wikipedia.org
# github.com
# github.com
# bitbucket.org
# bitbucket.org


<!--T:6-->
Should you get certificates error and pacman-mirrors throws a message of missing internet connection - you must verify your computers firmware date and time as this is probably completely off either because of configuration or a malfunctioning CMOS battery.
Should you get certificates error and pacman-mirrors throws a message of missing internet connection - you must verify your computers firmware date and time as this is probably completely off either because of configuration or a malfunctioning CMOS battery.


<!--T:7-->
The app is run by an ordinary user with superuser rights from the console and when no arguments are given it will display pacman-mirrors version followed by status of the mirrors currently listed in your mirrorlist.
The app is run by an ordinary user with superuser rights from the console and when no arguments are given it will display pacman-mirrors version followed by status of the mirrors currently listed in your mirrorlist.


  $ sudo pacman-mirrors
  <!--T:8-->
$ sudo pacman-mirrors


<!--T:9-->
Exactly how the app generates the mirrorlist is controlled by supplying arguments on the commandline.
Exactly how the app generates the mirrorlist is controlled by supplying arguments on the commandline.


=== '''IMPORTANT''' ===
=== '''IMPORTANT''' === <!--T:10-->
{{Tip|Every run of pacman-mirrors requires you to syncronize your database and update your system.}}
{{Tip|Every run of pacman-mirrors requires you to syncronize your database and update your system.}}


  $ sudo pacman -Syyu
  <!--T:11-->
$ sudo pacman -Syyu


<!--T:12-->
If you fail to do so, the issue/s which had you make change might not be solved. Furthermore you might run into [[System_Maintenance|''partial-updated'']] scenario which can cause havoc in your system. For more detailed information on how pacman works you can read up on the [https://wiki.archlinux.org/index.php/System_maintenance Archlinux Wiki]
If you fail to do so, the issue/s which had you make change might not be solved. Furthermore you might run into [[System_Maintenance|''partial-updated'']] scenario which can cause havoc in your system. For more detailed information on how pacman works you can read up on the [https://wiki.archlinux.org/index.php/System_maintenance Archlinux Wiki]


==TL:DR - Samples please==
==TL:DR - Samples please== <!--T:13-->
All commands uses the available mirror pool.<br />
All commands uses the available mirror pool.<br />
The mirror pool can be the default full mirror pool or a customized mirror pool.<br />
The mirror pool can be the default full mirror pool or a customized mirror pool.<br />
Line 39: Line 47:
For short versions have a look at the [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs|man page] or the usage command
For short versions have a look at the [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs|man page] or the usage command


===Commands giving information===
===Commands giving information=== <!--T:14-->


====Man page====
====Man page==== <!--T:15-->
  man pacman-mirrors
  man pacman-mirrors


====Help on usage====
====Help on usage==== <!--T:16-->
  pacman-mirrors --help
  pacman-mirrors --help


====Version====
====Version==== <!--T:17-->
  pacman-mirrors --version
  pacman-mirrors --version


====Mirror status====
====Mirror status==== <!--T:18-->
  pacman-mirrors --status
  pacman-mirrors --status


====List available countries====
====List available countries==== <!--T:19-->
In default mirror pool
In default mirror pool
  pacman-mirrors --country-list
  pacman-mirrors --country-list


<!--T:20-->
In custom mirror pool
In custom mirror pool
  pacman-mirrors --country-config
  pacman-mirrors --country-config


====What branch am I on====
====What branch am I on==== <!--T:21-->
  pacman-mirrors --get-branch
  pacman-mirrors --get-branch


===Commands using defaults===
===Commands using defaults=== <!--T:22-->


====Update mirrorlist with the fastest mirrors====
====Update mirrorlist with the fastest mirrors==== <!--T:23-->
  sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
  sudo pacman-mirrors --fasttrack && sudo pacman -Syyu


====Limit to 5 mirrors====
====Limit to 5 mirrors==== <!--T:24-->
An optional number can be supplied to limit the number of mirrors in the mirrorlist
An optional number can be supplied to limit the number of mirrors in the mirrorlist
  sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
  sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu


====Mirrors for your country only====
====Mirrors for your country only==== <!--T:25-->
Not all countries have mirrors, if geoip returns a country not in the pool all mirrors will be used.
Not all countries have mirrors, if geoip returns a country not in the pool all mirrors will be used.
  sudo pacman-mirrors --geoip && sudo pacman -Syyu
  sudo pacman-mirrors --geoip && sudo pacman -Syyu


===Commands customizing the mirror pool===
===Commands customizing the mirror pool=== <!--T:26-->


<!--T:27-->
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====
====Customize mirror pool by continent==== <!--T:28-->
Create a custom mirror pool using mirrors from the continent determined by querying a geolocation service
Create a custom mirror pool using mirrors from the continent determined by querying a geolocation service
  sudo pacman-mirrors --continent && sudo pacman -Syyu
  sudo pacman-mirrors --continent && sudo pacman -Syyu


====Customize mirror pool by countries====
====Customize mirror pool by countries==== <!--T:29-->
Create a custom mirror pool using mirrors from Germany, France and Austria
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==== <!--T:30-->
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.
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


====Use specific protocols (prioritized)====
====Use specific protocols (prioritized)==== <!--T:31-->
Rank the current mirror pool using only https and http protocol
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==== <!--T:32-->
Change the system branch to unstable and create a custom mirror pool using mirrors from Germany
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==== <!--T:33-->
Change the system branch to unstable, set configuration to use https only and create a custom mirror pool using mirrors from Germany
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


===Reset===
===Reset=== <!--T:34-->
You will come to a point where you want to reset to defaults
You will come to a point where you want to reset to defaults


  sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
  <!--T:35-->
sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu


==Overview==
==Overview== <!--T:36-->


=== Available arguments ===
=== Available arguments === <!--T:37-->


<!--T:38-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
All available arguments can be viewed by unfolding this block
All available arguments can be viewed by unfolding this block
Line 127: Line 139:
[-P PROTO [PROTO...]] [-R] [-U URL]
[-P PROTO [PROTO...]] [-R] [-U URL]


<!--T:39-->
METHODS:
METHODS:
   -i, --interactive    Generate custom mirrorlist
   -i, --interactive    Generate custom mirrorlist
Line 138: Line 151:
   --continent          Use continent from geolocation
   --continent          Use continent from geolocation


<!--T:40-->
API:
API:
   -a, --api            [-p PREFIX][-R][-S/-B|-G BRANCH][-P PROTO [PROTO ...]]
   -a, --api            [-p PREFIX][-R][-S/-B|-G BRANCH][-P PROTO [PROTO ...]]
Line 148: Line 162:
   -U, --url URL        API: Replace mirror url in mirrorlist
   -U, --url URL        API: Replace mirror url in mirrorlist


<!--T:41-->
MISC:
MISC:
   -G, --get-branch      Return branch from configuration
   -G, --get-branch      Return branch from configuration
Line 173: Line 188:
</div>
</div>


===Files used by pacman-mirrors===
===Files used by pacman-mirrors=== <!--T:42-->


====File: <code>/etc/pacman-mirrors.conf</code> <small>(sample - can be changed by pacman-mirrors api commands)</small>====
====File: <code>/etc/pacman-mirrors.conf</code> <small>(sample - can be changed by pacman-mirrors api commands)</small>==== <!--T:43-->


<!--T:44-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of a default configuration - click the link to the right --->
To view the content of a default configuration - click the link to the right --->
Line 186: Line 202:
     ##
     ##


     ## Branch Pacman should use (stable, testing, unstable)
     <!--T:45-->
## Branch Pacman should use (stable, testing, unstable)
     # Branch = stable
     # Branch = stable


     ## Generation method
     <!--T:46-->
## Generation method
     ## 1) rank  - rank mirrors depending on their access time
     ## 1) rank  - rank mirrors depending on their access time
     ## 2) random - randomly generate the output mirrorlist
     ## 2) random - randomly generate the output mirrorlist
     # Method = rank
     # Method = rank


     ## Define protocols and priority
     <!--T:47-->
## Define protocols and priority
     ##  separated by comma 'https,http' or 'http,https'
     ##  separated by comma 'https,http' or 'http,https'
     ## ATM available protocols are: http, https, ftp
     ## ATM available protocols are: http, https, ftp
Line 202: Line 221:
     # Protocols =
     # Protocols =


     ## When set to False - all certificates are accepted.
     <!--T:48-->
## When set to False - all certificates are accepted.
     ## Use only if you fully trust all ssl-enabled mirrors.
     ## Use only if you fully trust all ssl-enabled mirrors.
     # SSLVerify = True
     # SSLVerify = True
Line 209: Line 229:
</div>
</div>


====File: <code>/usr/share/pacman-mirrors/mirrors.json</code> <small>(sample - self updating)</small>====
====File: <code>/usr/share/pacman-mirrors/mirrors.json</code> <small>(sample - self updating)</small>==== <!--T:49-->


<!--T:50-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of a default mirror pool - click the link to the right --->
To view the content of a default mirror pool - click the link to the right --->
Line 774: Line 795:
</div>
</div>


====File: <code>/var/lib/pacman-mirrors/status.json</code> <small>(sample - self updating)</small>====
====File: <code>/var/lib/pacman-mirrors/status.json</code> <small>(sample - self updating)</small>==== <!--T:51-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of a default mirror pool including mirror status - click the link to the right --->
To view the content of a default mirror pool including mirror status - click the link to the right --->
Line 1,800: Line 1,821:
</div>
</div>


====File: <code>/etc/pacman-mirrors.conf</code> <small>(sample of default config)</small>====
====File: <code>/etc/pacman-mirrors.conf</code> <small>(sample of default config)</small>==== <!--T:52-->


<!--T:53-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of a default pacman-mirrors.conf - click the link to the right --->
To view the content of a default pacman-mirrors.conf - click the link to the right --->
Line 1,811: Line 1,833:
##
##


<!--T:54-->
## Branch Pacman should use (stable, testing, unstable)
## Branch Pacman should use (stable, testing, unstable)
# Branch = stable
# Branch = stable


<!--T:55-->
## Generation method
## Generation method
## 1) rank  - rank mirrors depending on their access time
## 1) rank  - rank mirrors depending on their access time
Line 1,819: Line 1,843:
# Method = rank
# Method = rank


<!--T:56-->
## Define protocols and priority
## Define protocols and priority
##  separated by comma 'https,http' or 'http,https'
##  separated by comma 'https,http' or 'http,https'
Line 1,827: Line 1,852:
# Protocols =  
# Protocols =  


<!--T:57-->
## Get a list of all available counties with 'pacman-mirrors -l'
## Get a list of all available counties with 'pacman-mirrors -l'
## Value can be 'Custom' or nothing which means all
## Value can be 'Custom' or nothing which means all
# OnlyCountry =  
# OnlyCountry =  


<!--T:58-->
## When set to False - all certificates are accepted.
## When set to False - all certificates are accepted.
## Use only if you fully trust all ssl-enabled mirrors.
## Use only if you fully trust all ssl-enabled mirrors.
Line 1,838: Line 1,865:
</div>
</div>


====Sample command to customize mirror pool====
====Sample command to customize mirror pool==== <!--T:59-->


<!--T:60-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of the sample command - click the link to the right --->
To view the content of the sample command - click the link to the right --->
Line 1,847: Line 1,875:
.: INFO Downloading mirrors from repo.manjaro.org
.: INFO Downloading mirrors from repo.manjaro.org


<!--T:61-->
.: INFO User generated mirror list
.: INFO User generated mirror list
--------------------------
--------------------------
Line 1,870: Line 1,899:
</div>
</div>


====File: <code>/etc/pacman.d/mirrorlist</code> <small>(sample)</small>====
====File: <code>/etc/pacman.d/mirrorlist</code> <small>(sample)</small>==== <!--T:62-->


<!--T:63-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of the sample mirrorlist - click the link to the right --->
To view the content of the sample mirrorlist - click the link to the right --->
Line 1,886: Line 1,916:
##
##


<!--T:64-->
## Country : Denmark
## Country : Denmark
Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch
Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch


<!--T:65-->
## Country : Denmark
## Country : Denmark
Server = https://mirrors.dotsrc.org/manjaro/unstable/$repo/$arch
Server = https://mirrors.dotsrc.org/manjaro/unstable/$repo/$arch
Line 1,895: Line 1,927:
</div>
</div>


====File: <code>/var/lib/pacman-mirrors/custom-mirrors.json</code> <small>(sample)</small>====
====File: <code>/var/lib/pacman-mirrors/custom-mirrors.json</code> <small>(sample)</small>==== <!--T:66-->


<!--T:67-->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
To view the content of a custom mirror pool - click the link to the right --->
To view the content of a custom mirror pool - click the link to the right --->
Line 1,936: Line 1,969:
</div>
</div>


=== Defaults ===
=== Defaults === <!--T:68-->
PacmanMirrors has some reasonable defaults
PacmanMirrors has some reasonable defaults


  - Ranking mirrors with the fastest mirrors on top
  <!--T:69-->
- Ranking mirrors with the fastest mirrors on top
  - Using stable branch
  - Using stable branch
  - Using all mirrors
  - Using all mirrors


<!--T:70-->
The '''-f''' or '''--fasttrack''' argument uses mirrors which are up-to-date for your branch. Optionally you can supply a number e.g. 10
The '''-f''' or '''--fasttrack''' argument uses mirrors which are up-to-date for your branch. Optionally you can supply a number e.g. 10


=== Continent ===
=== Continent === <!--T:71-->
The --continent argument is using a geolocation function to create a custom mirror pool from countries within the geolocated continent.
The --continent argument is using a geolocation function to create a custom mirror pool from countries within the geolocated continent.


=== Country ===
=== Country === <!--T:72-->
Instead of pacman-mirrors probing all mirrors in all countries it is possible to supply a list of countries from which to use the mirrors. This creates a custom mirror pool. The countries is an example - check the country list if in doubt.
Instead of pacman-mirrors probing all mirrors in all countries it is possible to supply a list of countries from which to use the mirrors. This creates a custom mirror pool. The countries is an example - check the country list if in doubt.


  $ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu
  <!--T:73-->
$ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu


<!--T:74-->
If a supplied country does not offer a mirrorserver the app quits with an error explaining why.
If a supplied country does not offer a mirrorserver the app quits with an error explaining why.


  $ sudo pacman-mirrors --country Antarctica && sudo pacman -Syyu
  <!--T:75-->
$ sudo pacman-mirrors --country Antarctica && sudo pacman -Syyu
  .: Info Downloading mirrors from repo.manjaro.org
  .: Info Downloading mirrors from repo.manjaro.org
  .: Warning Option '-c/--country' : unknown country: 'Antarctica'
  .: Warning Option '-c/--country' : unknown country: 'Antarctica'
Line 1,966: Line 2,004:




<!--T:76-->
Another option for the mirrors closest to your location is '''--geoip'''
Another option for the mirrors closest to your location is '''--geoip'''
<pre>$ sudo pacman-mirrors --geoip --quiet && sudo pacman -Syyu
<pre>$ sudo pacman-mirrors --geoip --quiet && sudo pacman -Syyu
Line 1,974: Line 2,013:
</pre>
</pre>


===Customizing the mirror pool===
===Customizing the mirror pool=== <!--T:77-->
If you, for various reasons, have a preference for specific mirrors, it is possible to create a personal mirror pool. This is done by supplying ''--interactive [--default]'', ''--continent-- or ''--country'' argument.
If you, for various reasons, have a preference for specific mirrors, it is possible to create a personal mirror pool. This is done by supplying ''--interactive [--default]'', ''--continent-- or ''--country'' argument.


====A word of caution====
====A word of caution==== <!--T:78-->
Don't limit yourself too much. Pacman-mirrors will only use up-to-date mirrors in the final mirrorlist. Also observe this: Your custom mirror pool will not be changed - even if a mirror leaves service or becomes unmaintained. It is your reponsibility to maintain your custom mirror pool in the event the official mirrorpool is changed.
Don't limit yourself too much. Pacman-mirrors will only use up-to-date mirrors in the final mirrorlist. Also observe this: Your custom mirror pool will not be changed - even if a mirror leaves service or becomes unmaintained. It is your reponsibility to maintain your custom mirror pool in the event the official mirrorpool is changed.


===Customizing pool===
===Customizing pool=== <!--T:79-->
The customized pool is saved as <code>/var/lib/pacman-mirrors/custom-mirrors.json</code>
The customized pool is saved as <code>/var/lib/pacman-mirrors/custom-mirrors.json</code>


<!--T:80-->
'''First option''' is using ''--interactive''. It uses your current mirror pool(whether default or custom)
'''First option''' is using ''--interactive''. It uses your current mirror pool(whether default or custom)
  $ sudo pacman-mirrors --interactive && sudo pacman -Syyu
  $ sudo pacman-mirrors --interactive && sudo pacman -Syyu


<!--T:81-->
'''Second option''' is using ''--interactive --default''. This force the use of the official mirror pool
'''Second option''' is using ''--interactive --default''. This force the use of the official mirror pool
  $ sudo pacman-mirrors --interactive --default && sudo pacman -Syyu
  $ sudo pacman-mirrors --interactive --default && sudo pacman -Syyu


<!--T:82-->
'''Third option''' is supplying a list of countries with ''--country''. The countries is an example - check the country list if in doubt.
'''Third option''' is supplying a list of countries with ''--country''. The countries is an example - check the country list if in doubt.
  $ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu
  $ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syyu


<!--T:83-->
'''Fourth option''' is ''--continent''. The countries used is determined by the continent they are assigned to and can optionally be combined with '''--interactive'''.
'''Fourth option''' is ''--continent''. The countries used is determined by the continent they are assigned to and can optionally be combined with '''--interactive'''.
  $ sudo pacman-mirrors --continent [--interactive]
  $ sudo pacman-mirrors --continent [--interactive]


<!--T:84-->
Using ''--interactive'' option, pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. In any case the pool is saved and used to generate a mirrorlist.
Using ''--interactive'' option, pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. In any case the pool is saved and used to generate a mirrorlist.


====Syncronization status====
====Syncronization status==== <!--T:85-->
Pacman-mirrors downloads pool status for the default mirror pool. When you want to regenerate your mirrorlist, your custom pool is updated with the info from the downloaded pool status.
Pacman-mirrors downloads pool status for the default mirror pool. When you want to regenerate your mirrorlist, your custom pool is updated with the info from the downloaded pool status.


<!--T:86-->
This ensures you will '''always''' use up-to-date mirrors.
This ensures you will '''always''' use up-to-date mirrors.


===Resetting and changing the custom mirror pool===
===Resetting and changing the custom mirror pool=== <!--T:87-->
'''First option''' to reset is to default mirror pool
'''First option''' to reset is to default mirror pool


  $ sudo pacman-mirrors --country all && sudo pacman -Syyu
  <!--T:88-->
$ sudo pacman-mirrors --country all && sudo pacman -Syyu


<!--T:89-->
'''Second option''' to is to use ''--default'' with ''--interactive'' and creating a new custom mirror pool
'''Second option''' to is to use ''--default'' with ''--interactive'' and creating a new custom mirror pool


  $ sudo pacman-mirrors --interactive --default && sudo pacman -Syyu
  <!--T:90-->
$ sudo pacman-mirrors --interactive --default && sudo pacman -Syyu
* 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.


<!--T:91-->
'''Third option''' is to supply a list of countries and use those for a custom mirror pool.
'''Third option''' is to supply a list of countries and use those for a custom mirror pool.
The countries is an example - check the country list if in doubt.
The countries is an example - check the country list if in doubt.
Line 2,017: Line 2,066:
* 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.


<!--T:92-->
The '''--continent''' option has a behavior similar to '''--country'''
The '''--continent''' option has a behavior similar to '''--country'''


=== Apply pacman-mirrors defaults ===
=== Apply pacman-mirrors defaults === <!--T:93-->
  sudo pacman-mirrors --country all --api --protocol all -set-branch stable && sudo pacman -Syyu
  sudo pacman-mirrors --country all --api --protocol all -set-branch stable && sudo pacman -Syyu


<!--T:94-->
The system will throw messages about newer packages on the system. These messages can safely be ignored and they dissappear when the installed package(s) equals the system branch.
The system will throw messages about newer packages on the system. These messages can safely be ignored and they dissappear when the installed package(s) equals the system branch.


== manpage ==
== manpage == <!--T:95-->
* The manpage is in section 8 (System administration commands)
* The manpage is in section 8 (System administration commands)
* [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs man page]
* [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs man page]




==FAQ==
==FAQ== <!--T:96-->


===pacman-mirrors.conf===
===pacman-mirrors.conf=== <!--T:97-->


<!--T:98-->
If pacman-mirrors is updated and has a new '''pacman-mirrors.conf''', it will inform you that a new conf is saved as '''pacman-mirrors.conf.pacnew'''.
If pacman-mirrors is updated and has a new '''pacman-mirrors.conf''', it will inform you that a new conf is saved as '''pacman-mirrors.conf.pacnew'''.


<!--T:99-->
''You must manually merge changes/additions into your pacman-mirrors.conf.''
''You must manually merge changes/additions into your pacman-mirrors.conf.''


==Forum posts==
==Forum posts== <!--T:100-->
* [https://forum.manjaro.org/search?q=pacman-mirrors%20order%3Alatest Pacman-mirrors in the forum]
* [https://forum.manjaro.org/search?q=pacman-mirrors%20order%3Alatest Pacman-mirrors in the forum]
</translate>
</translate>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.