Rankmirrors to Set the Fastest Download Server

From Manjaro Linux
Jump to: navigation, search


The official Manjaro repositories (also known as mirrors) are hosted on Software Servers. Physically located throughout the world, these servers are responsible for receiving requests for software packages via the terminal and/or pacman-gui, and consequently 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 server itself, and
  • The proximity of the server to you (i.e. how close or how far away it is)

Barring upgrading your internet package or switching providers, it is therefore potentially possible to improve the speed of downloads from the Manjaro repositories by using the pacman-mirrors -g command. This will automatically check all of the mirror servers available and consequently update the /etc/pacman.d/mirrorlist file, placing them in order fastest to slowest. The Mirrorlist file is itself used by Manjaro's package manager - pacman - to tell it the internet addresses of the Manjaro servers in order to download updates and software applications from them. Alternatively, it is possible to manually determine which server(s) to use, by using the Change to a Different Download Server guide.

Running the pacman-mirrors -g Command to Update the Mirrorlist

To run the pacman-mirrors -g command you will need root privileges to do so, otherwise permission will be denied. So the best way to do this is as follows:

sudo pacman-mirrors -g

After entering the above command in the Terminal, you will be asked for, & will need to input your root password.

After that the Manjaro mirror servers will be tested, ranked & your /etc/pacman.d/mirrorlist will be rewritten accordingly.

Once this process is complete, it will then be necessary to synchronize with the newly enabled server(s).

Running the pacman-mirrors -i , command to update Mirrorlist

It works like pacman-mirrors -g , one difference is it works interactive Mode. You are be able to choose the mirrors that works for you !

You can follow the repo.manjaro.org website to track te closest and best mirrors for your system. you come in an menu with Next Page you switch pages but clicking on the mirror you select which mirrors you wanna use! If you are ready push the Show Custom List. It propose what you have selected. After clicked Done it would made a list for you.

then works in the same way as pacman-mirrors -g ! and if you wanna Clear the list and made a new one?

Then enter in terminal:

 sudo pacman-mirrors -i -c all

Then you are be able to renew the list!

Synchronizing with the Manjaro Servers

Your Manjaro system has a database of all the software packages that are available from the official repositories. These repositories are used by pacman to locate and download packages from them for installation. Synchronizing your database after amending the mirrorlist is the final step in this process. Synchronizing will ensure that your system's database is up to date as well as help to avoid any potential problems when downloading software packages going forward.

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

sudo pacman -Syy

Once the /etc/pacman.d/mirrorlist has been reordered and the database synchronized, the desired changes will be in effect (there is no need to reboot your system).

Optional: Inspect the Contents of the Revised Mirrorlist

The syntax of the command to open the mirrorlist file is:

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

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

sudo nano /etc/pacman.d/mirrorlist

Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed gedit text editor instead. This will open the mirrorlist file up as a document, making it easier to read and edit. To use gedit instead, the command is:

' sudo gedit /etc/pacman.d/mirrorlist '

Once the contents of the mirrorlist have been viewed, close the file by:

  • nano: Press CTRL and 'x' to exit, or
  • gedit: Close the window.

See Also