Difference between revisions of "Change to a Different Download Server"
Views
Actions
Namespaces
Variants
Tools
General updates, add new reference to pacman-mirrors
imported>Fhdk m (→Editing the mirrorlist: emphasize keypresses) |
imported>Dalto (General updates, add new reference to pacman-mirrors) |
||
Line 1: | Line 1: | ||
= Overview = | = Overview = | ||
The official Manjaro repositories (also known as ''mirrors'') | The official Manjaro repositories are hosted on ''Software Servers''(also known as ''mirrors'') . Physically located throughout the world, these mirrors are responsible for receiving requests for software packages and delivering them to your system. There are therefore three primary factors that will determine how fast your downloads are: | ||
* Your internet connection | * Your internet connection | ||
* The speed of the | * The speed of the mirror itself, and | ||
* The proximity of the | * The proximity of the mirror to you, that is, how close or how far away it is from a network perspective. | ||
Other than upgrading your internet package or switching providers, it is therefore, potentially possible to improve the speed of downloads from the Manjaro repositories by selecting a different | Other than upgrading your internet package or switching providers, it is therefore, potentially possible to improve the speed of downloads from the Manjaro repositories by selecting a different mirror to use. | ||
To get a list of countries currently serving mirrors use the command | To get a list of countries currently serving mirrors use the command | ||
Line 12: | Line 12: | ||
sudo pacman-mirrors --country-list | sudo pacman-mirrors --country-list | ||
{{note|The geographically closest server may not always necessarily be the fastest!}} | |||
=Updating the mirrorlist the easy way= | |||
The easiest method is to use '''pacman-mirrors''' which automates the process of determining the fastest mirrors and updating the mirrrorlist accordingly. A full description of how to use '''pacman-mirrors''' can be found one the [[Pacman-mirrors]] page. | |||
This is undertaken by amending the '''mirrorlist''' file, which is read by Manjaro's package | |||
=Updating the mirrorlist manually= | |||
This is undertaken by amending the '''mirrorlist''' file, which is read by Manjaro's package managers, for the internet addresses of the Manjaro servers to download updates and software applications from. | |||
== Edit the Mirrorlist == | == Edit the Mirrorlist == | ||
{{tip|More than one server can be enabled. However, they will be selected in the order they are listed, and the package manager will only select another server if there is a problem with the one before it.}} | |||
{{tip|More than one server can be enabled. However, they will be selected in the order they are listed, and | |||
You have a multitude of options for editing text file. Every system and every user has a preferred GUI text editor. However due to security concerns, it is difficult to launch a GUI editor to correctly edit a protected system configuration file. | |||
Therefore you need to be familiar with basic terminal usage. '''nano''' is a terminal based text editor available with all Manjaro editions that we will use as an example. | |||
=== Terminal === | === Terminal === | ||
Line 38: | Line 41: | ||
sudo nano /etc/pacman.d/mirrorlist | sudo nano /etc/pacman.d/mirrorlist | ||
=== Editing the mirrorlist === | === Editing the mirrorlist === | ||
Line 108: | Line 88: | ||
#----->snipped | #----->snipped | ||
</pre> | </pre> | ||
{{ | {{note|Do not remove hashes from the lines that contain the names of the server countries.}} | ||
Once you have disabled and/or enabled the desired server(s), save the changes and close the mirrorlist | Once you have disabled and/or enabled the desired server(s), save the changes and close the mirrorlist. | ||
= Step 2: Synchronising with the Newly Enabled Server(s) = | |||
{{warning|Always synchronise with '''-Syyu''' after changing mirrors. Failure to do so may result in a broken system after updates}} | |||
Your Manjaro system has a database of all the software packages that are available from the official repositories. These are used by pacman to locate and download them for installation. Synchronising your database after changing servers will therefore ensure that it is up to date, and avoid any potential problems when subsequently downloading software packages. | Your Manjaro system has a database of all the software packages that are available from the official repositories. These are used by pacman to locate and download them for installation. Synchronising your database after changing servers will therefore ensure that it is up to date, and avoid any potential problems when subsequently downloading software packages. | ||
Line 126: | Line 104: | ||
sudo pacman -Syyu | sudo pacman -Syyu | ||
Once the Mirrorlist has been amended and the database synchronised, the change will be immediate. There will be no need to reboot your system for the change to take effect. | |||
= See Also = | = See Also = | ||
* | * [[Pacman-mirrors|Reference Guide to pacman-mirrrors]] | ||
[[Category:Contents Page]] | [[Category:Contents Page]] | ||