Difference between revisions of "Pacman-mirrors"
Views
Actions
Namespaces
Variants
Tools
→Manjaro PacmanMirrors: --~~~~
imported>Fhdk m (→Available arguments: added -f/--fasttrack) |
imported>Fhdk (→Manjaro PacmanMirrors: --~~~~) |
||
Line 104: | Line 104: | ||
If you want to reset the list to default run | If you want to reset the list to default run | ||
<pre>$ sudo pacman-mirrors --generate --country all</pre> | <pre>$ sudo pacman-mirrors --generate --country all</pre> | ||
===Fasttrack=== | |||
First of all, a working internet connection is mandatory. From v4, Pacman-Mirrors will always check if network is online. It is doing so by pinging google with 3 packets. If network is not available you will be so informed and you can rerun with **-m random**. | |||
====Questions==== | |||
So, ''pacman-mirrors -f 2'' takes the same time to create /etc/pacman.d/mirrorlist as ''pacman-mirrors -f 20''? | |||
'''No'''. ''pacman-mirrors -f 2'' will approx. be '''10x''' faster than ''pacman-mirrors -f 20'' since only 2 mirrors are probed versus 20 mirrors. | |||
So, ''pacman-mirrors -f [n]'' always ranks '''ALL''' mirrors by response time (the same as ''-g'' does) and additionally takes up-to-date mirrors and writes only '''n''' mirrors to the mirrorlist? | |||
'''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==== | |||
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. | |||
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. | |||
@excalibur1234: | |||
in this case, the name "'''fasttrack'''" actually makes sense, because the tracking process really is faster. |