Difference between revisions of "Pacman-mirrors"

no edit summary
imported>Fhdk
imported>Fhdk
Line 112: Line 112:
In such a situation, where you have pulled software from another branch, you must be prepared for messages from pacman or pamac about newer packages on the system. These messages can safely be ignored and they dissappear when the installed package(s) reaches stable branch
In such a situation, where you have pulled software from another branch, you must be prepared for messages from pacman or pamac about newer packages on the system. These messages can safely be ignored and they dissappear when the installed package(s) reaches stable branch


=== Your personal mirrorlist ===
===Your personal mirrorlist===
If you, for various reasons, have a preference for specific mirrors, it is possible to create a personal mirrorlist. This is done by supplying ''interactive'' argument.
If you, for various reasons, have a preference for specific mirrors, it is possible to create a personal mirrorlist. This is done by supplying ''interactive'' argument.


Line 119: Line 119:
Pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. The resulting list will be saved to the system and used each time you run pacman-mirrors.
Pacman-mirrors will process the available mirrors and present you with a list in which you will select your desired mirrors. The resulting list will be saved to the system and used each time you run pacman-mirrors.


If you want to reset the list to default run
When you want to reset the list to default run


  $ sudo pacman-mirrors --country all
  $ sudo pacman-mirrors --country all


===Fasttrack===
===Fasttrack===
If network is not available you will be so informed and you can rerun with ''-m random''.
The following arguments '''-c -i -m --geoip''' will not work in conjunction with '''-f'''.
 
The smaller number of mirrors you choose for your mirrorlist, the possibility of getting a not so responsive mirror increases, since only the first '''n''' in the list are tested, not all of them. A reasonable number would be between 5 and 10.
 
==FAQ==


====Questions====
So, ''pacman-mirrors -f 2'' takes the same time to create /etc/pacman.d/mirrorlist as ''pacman-mirrors -f 20''?
So, ''pacman-mirrors -f 2'' takes the same time to create /etc/pacman.d/mirrorlist as ''pacman-mirrors -f 20''?


Line 135: Line 138:
'''No'''. ''pacman-mirrors -f [n]'' ranks on a sorted list with known up-to-date mirrors. Thus it is only the first '''n''' mirrors from this list which are actually probed. If you have a list of 30 mirrors which are up-to-date and use ''-f 5'' only the ''top 5 mirrors'' are probed and then sorted after response time.
'''No'''. ''pacman-mirrors -f [n]'' ranks on a sorted list with known up-to-date mirrors. Thus it is only the first '''n''' mirrors from this list which are actually probed. If you have a list of 30 mirrors which are up-to-date and use ''-f 5'' only the ''top 5 mirrors'' are probed and then sorted after response time.


====To be aware of====
'''My branch changes itself'''
The following arguments '''-c -i -m --geoip''' will not work in conjunction with '''-f'''.
When pacman-mirrors is updated it is by convention that pacman replaces your pacman-mirrors.conf.
 
Check if you have
The smaller number of mirrors you choose for your mirrorlist, the possibility of getting a not so responsive mirror increases, since only the first '''n''' in the list are tested, not all of them. A reasonable number would be between 5 and 10.


The force of this approach is, because of the status.json file on repo.manjaro.org, we know forehand if the mirror is up-to-date and thus only have to rank the top n mirrors from the list. The switch does not guarantee you get the n fastest mirrors only that they are responsive and up-to-date. Mirrors which have network errors or times out are not considered at all.
- /etc/pacman-mirrors.conf.pacsave
- /etc/pacman-mirrors.conf.pacnew
- /etc/pacman-mirrors.conf.<date>.backup


@excalibur1234:
You must manually merge changes to your pacman-mirrors.conf or restore the one you are used to.
in this case, the name "'''fasttrack'''" actually makes sense, because the tracking process really is faster.


==TL:DR==
==TL:DR==
Anonymous user