Moderators, translator
455
edits
m (Fix typos) |
(Added explanation on -Syu vs -Syyu) |
||
Line 39: | Line 39: | ||
<!--T:12--> | <!--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] | ||
==== 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 may then generate 404 errors because the local metadata may contain references to package versions which no longer exist. | |||
The doubled '''y''' is to mitigate such possible issues - especially when you switch branch or mirror. | |||
It is correct that it should only be needed to use -Syu 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 y makes sense - which is also why it was used in the pacman-mirrors dokumentation. | |||
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. | |||
==TL:DR - Samples please== <!--T:13--> | ==TL:DR - Samples please== <!--T:13--> |