Moderators, translator
455
edits
m (removed linebreaks) |
(Marked this version for translation) |
||
Line 35: | Line 35: | ||
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. | 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. | ||
<!--T:101--> | |||
Only in the event that '''Last-Modifed''' on the mirror is newer - pacman requests the complete file. | Only in the event that '''Last-Modifed''' on the mirror is newer - pacman requests the complete file. | ||
<!--T:102--> | |||
This can present an awkward scenario where the local metadata is newer than the mirror but it contains older content. | This can present an awkward scenario where the local metadata is newer than the mirror but it contains older content. | ||
<!--T:103--> | |||
This inconsistency may then generate '''HTTP 404 Not Found''' errors because the local metadata could contain references to package versions which no longer exist. | This inconsistency may then generate '''HTTP 404 Not Found''' errors because the local metadata could contain references to package versions which no longer exist. | ||
<!--T:104--> | |||
The doubled '''yy''' is to mitigate such possible issues - especially when you switch branch or mirror. | The doubled '''yy''' is to mitigate such possible issues - especially when you switch branch or mirror. | ||
<!--T:105--> | |||
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. | 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. | ||
<!--T:106--> | |||
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. | 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. | ||
<!--T:11--> | |||
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. | 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}} | ||