Manjaro Difference between revisions of "Change to a Different Download Server"

Difference between revisions of "Change to a Different Download Server"

From Manjaro
m (added languages and translate tags)
(Marked this version for translation)
Line 2: Line 2:
__TOC__
__TOC__
<translate>
<translate>
= Overview =  
= Overview = <!--T:1-->


<!--T:2-->
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:
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
Line 9: Line 10:
* The proximity of the mirror to you, that is, how close or how far away it is from a network perspective.
* The proximity of the mirror to you, that is, how close or how far away it is from a network perspective.


<!--T:3-->
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.
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.


<!--T:4-->
To get a list of countries currently serving mirrors use the command
To get a list of countries currently serving mirrors use the command


  sudo pacman-mirrors --country-list
  <!--T:5-->
sudo pacman-mirrors --country-list


<!--T:6-->
{{note|The geographically closest server may not always necessarily be the fastest!}}
{{note|The geographically closest server may not always necessarily be the fastest!}}




=Updating the mirrorlist the easy way=
=Updating the mirrorlist the easy way= <!--T:7-->


<!--T:8-->
The easiest method is to use '''pacman-mirrors''' which automates the process of determining the fastest mirrors and updating the mirrrorlist accordingly.<br />   
The easiest method is to use '''pacman-mirrors''' which automates the process of determining the fastest mirrors and updating the mirrrorlist accordingly.<br />   
A full description of how to use '''pacman-mirrors''' can be found one the [[Pacman-mirrors]] page.
A full description of how to use '''pacman-mirrors''' can be found one the [[Pacman-mirrors]] page.


=Updating the mirrorlist manually=
=Updating the mirrorlist manually= <!--T:9-->


<!--T:10-->
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.  
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 == <!--T:11-->
{{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 the package manager will only select another server if there is a problem with the one before it.}}


<!--T:12-->
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.
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.


<!--T:13-->
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.
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 === <!--T:14-->


<!--T:15-->
You will need to first open your terminal in order to edit the mirrorlist file. The syntax of the command to edit the mirrorlist is:
You will need to first open your terminal in order to edit the mirrorlist file. The syntax of the command to edit the mirrorlist is:
  sudo [terminal text editor] /etc/pacman.d/mirrorlist
  sudo [terminal text editor] /etc/pacman.d/mirrorlist


<!--T:16-->
For example, if you wish to edit the file within the terminal using ''nano'' (a standard terminal-based text editor) then enter:
For example, if you wish to edit the file within the terminal using ''nano'' (a standard terminal-based text editor) then enter:
  sudo nano /etc/pacman.d/mirrorlist
  sudo nano /etc/pacman.d/mirrorlist




=== Editing the mirrorlist ===
=== Editing the mirrorlist === <!--T:17-->


<!--T:18-->
'''Lines beginning with a hash '#' will be ignored by pacman'''. Hence to disable a mirror, a comment can be put in the beginning of a line starting with ''Server''.
'''Lines beginning with a hash '#' will be ignored by pacman'''. Hence to disable a mirror, a comment can be put in the beginning of a line starting with ''Server''.


<!--T:19-->
The mirrorlist can be long generally and only a part of it is displayed below:
The mirrorlist can be long generally and only a part of it is displayed below:
<pre>
<pre>
Line 59: Line 72:
##
##


<!--T:20-->
## Country : Germany
## Country : Germany
Server = https://mirror.philpot.de/manjaro/unstable/$repo/$arch
Server = https://mirror.philpot.de/manjaro/unstable/$repo/$arch


<!--T:21-->
## Country : Denmark
## Country : Denmark
Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch
Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch


<!--T:22-->
## Country : United_Kingdom
## Country : United_Kingdom
Server = http://manjaro.mirrors.uk2.net/unstable/$repo/$arch
Server = http://manjaro.mirrors.uk2.net/unstable/$repo/$arch


<!--T:23-->
## Country : Poland
## Country : Poland
Server = https://mirror.tuchola-dc.pl/manjaro/unstable/$repo/$arch
Server = https://mirror.tuchola-dc.pl/manjaro/unstable/$repo/$arch


<!--T:24-->
## Country : Germany
## Country : Germany
Server = http://mirror.ragenetwork.de/manjaro/unstable/$repo/$arch
Server = http://mirror.ragenetwork.de/manjaro/unstable/$repo/$arch


<!--T:25-->
## Country : Netherlands
## Country : Netherlands
Server = https://mirror.koddos.net/manjaro/unstable/$repo/$arch
Server = https://mirror.koddos.net/manjaro/unstable/$repo/$arch


<!--T:26-->
## Country : Netherlands
## Country : Netherlands
Server = https://manjaro.mirror.wearetriple.com/unstable/$repo/$arch
Server = https://manjaro.mirror.wearetriple.com/unstable/$repo/$arch


<!--T:27-->
## Country : Germany
## Country : Germany
Server = https://mirror.alpix.eu/manjaro/unstable/$repo/$arch
Server = https://mirror.alpix.eu/manjaro/unstable/$repo/$arch


<!--T:28-->
## Country : Netherlands
## Country : Netherlands
Server = https://mirror.neostrada.nl/manjaro/unstable/$repo/$arch
Server = https://mirror.neostrada.nl/manjaro/unstable/$repo/$arch


<!--T:29-->
## Country : United_Kingdom
## Country : United_Kingdom
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable/$repo/$arch
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable/$repo/$arch


<!--T:30-->
#----->snipped
#----->snipped
</pre>
</pre>
Line 94: Line 118:




<!--T:31-->
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) =
= Step 2: Synchronising with the Newly Enabled Server(s) = <!--T:32-->


<!--T:33-->
{{warning|Always synchronise with '''-Syyu''' after changing mirrors.  Failure to do so may result in a broken system after updates}}
{{warning|Always synchronise with '''-Syyu''' after changing mirrors.  Failure to do so may result in a broken system after updates}}


<!--T:34-->
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.


<!--T:35-->
To synchronise your database with the Manjaro repositories, enter the following command in the terminal:
To synchronise your database with the Manjaro repositories, enter the following command in the terminal:


  sudo pacman -Syyu
  <!--T:36-->
sudo pacman -Syyu


<!--T:37-->
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.
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 = <!--T:38-->


<!--T:39-->
* [[Pacman-mirrors|Reference Guide to pacman-mirrrors]]
* [[Pacman-mirrors|Reference Guide to pacman-mirrrors]]
</translate>
</translate>

Revision as of 16:21, 7 September 2021

Other languages:
English • ‎Türkçe • ‎русский

Overview

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
  • The speed of the mirror itself, and
  • 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 mirror to use.

To get a list of countries currently serving mirrors use the command

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.

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

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.

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

You will need to first open your terminal in order to edit the mirrorlist file. The syntax of the command to edit the mirrorlist is:

sudo [terminal text editor] /etc/pacman.d/mirrorlist

For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:

sudo nano /etc/pacman.d/mirrorlist


Editing the mirrorlist

Lines beginning with a hash '#' will be ignored by pacman. Hence to disable a mirror, a comment can be put in the beginning of a line starting with Server.

The mirrorlist can be long generally and only a part of it is displayed below:

~ >>> cat /etc/pacman.d/mirrorlist                                                          
##
## Manjaro Linux default mirrorlist
## Generated on 2018-02-17 13:32
##
## Please use 'pacman-mirrors -f [NUMBER]' to modify mirrorlist
##

## Country : Germany
Server = https://mirror.philpot.de/manjaro/unstable/$repo/$arch

## Country : Denmark
Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch

## Country : United_Kingdom
Server = http://manjaro.mirrors.uk2.net/unstable/$repo/$arch

## Country : Poland
Server = https://mirror.tuchola-dc.pl/manjaro/unstable/$repo/$arch

## Country : Germany
Server = http://mirror.ragenetwork.de/manjaro/unstable/$repo/$arch

## Country : Netherlands
Server = https://mirror.koddos.net/manjaro/unstable/$repo/$arch

## Country : Netherlands
Server = https://manjaro.mirror.wearetriple.com/unstable/$repo/$arch

## Country : Germany
Server = https://mirror.alpix.eu/manjaro/unstable/$repo/$arch

## Country : Netherlands
Server = https://mirror.neostrada.nl/manjaro/unstable/$repo/$arch

## Country : United_Kingdom
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable/$repo/$arch

#----->snipped
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.


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.

To synchronise your database with the Manjaro repositories, enter the following command in the terminal:

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.