Difference between revisions of "Pacman-mirrors/en"

Updating to match new version of source page
(Updating to match new version of source page)
Tags: Mobile web edit Mobile edit
(Updating to match new version of source page)
 
Line 10: Line 10:


=== Use ===
=== Use ===
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. pacman-mirrors will selfupdate by downloading mirrors.json and status.json from repo.manjaro.org
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 availability. pacman-mirrors will selfupdate by downloading mirrors.json and status.json from repo.manjaro.org.


# repo.manjaro.org
# repo.manjaro.org
Line 25: Line 25:


=== '''IMPORTANT''' ===
=== '''IMPORTANT''' ===
==== When to use a forced metadata refresh ====
When pacman requests the metadata from the mirror then - to avoid unnecessary download - pacman asks for '''Last-Modified''' header for the metadata on the server.
Only in the event that '''Last-Modifed''' on the mirror is newer - pacman requests the complete file.
This can present an awkward scenario where the local metadata is newer than the mirror but it contains older content.
This inconsistency may then generate '''HTTP 404 Not Found''' errors because the local metadata could contain references to package versions which no longer exist.
The doubled '''yy''' is to mitigate such possible issues - especially when you switch branch or mirror.
It is bad practise to indiscrimately use '''-Syyu''' for update scenarios, but - pamac mirrorlist timer rewrites the mirrorlist on a weekly or bi-weekly basis - thus increasing the possibility of having inconsistent metadata - in which case the doubled '''yy''' makes sense - which is also why it is used in the pacman-mirrors man page.
To further the inconsistency - pamac uses copies of the pacman database - which has caused confusion before - pamac and pacman being in disagreement over available updates.
The commands presented in this document uses the syntax '''-Syu''' thus leaving it to the user to add the extra '''-Syyu''' only in case where it is strictly necessary.
{{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.}}
 
{{UserCmd|command=sudo pacman -Syu}}
{{UserCmd|command=sudo pacman -Syu}}


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]
8,138

edits