How to find mirror list and set fastest download server on Manjaro

Manjaro also offers several official Manjaro repositories that are hosted on Software Servers throughout the world. The closest server near you may be the fastest. Let's fish it!

For some reason, if your Manjaro is not downloading the package updates at good internet speed, chances are it could be connected to a slow server. Like most of the Linux distributions, Manjaro also offers several official Manjaro repositories that are hosted on Software Servers throughout the world.

These repos (also called mirrors) are the sources for downloading software packages via the terminal and/or pacman-gui. There are three main circumstances that will limit how fast your downloads are progressing:

  1. Your internet connection
  2. The speed of the server itself, and
  3. The proximity of the server to you (i.e. how close or how far away it is)

Looking at the list, it’s a no brainer to point out the first two factors are not entirely in your control. All you can do is select the closest and fastest download server in your area. In this guide, we will look at how to find out the closest official Manjaro download server.

Finding the Download Servers Mirror List

Launch the Terminal and enter the following command:

sudo pacman-mirrors --fasttrack && sudo pacman -Syyu

The above command will fetch and add each and every mirror to the list which could take some time. To optionally limit the number of mirrors being fetched, add a number after —fasttrack. Here is an example to limit to 10 mirrors.

sudo pacman-mirrors --fasttrack 10 && sudo pacman -Syyu

The 10 mirrors will be sorted by their current response times and then te mirror list will be exported and saved to the following directory:

/etc/pacman.d/mirrorlist

By Country

Optionally, if you want the search confined to the country or countries of your choice, use the following command:

sudo pacman-mirrors --country Costa_Rica && sudo pacman -Syyu

Selecting preferred mirrors by an interactive method

Now that you know which is the best server, you may want to set it as preferred download server for all future system updates.

The following command is similar to –fasttrack, except it now works in interactive mode. You will be able to choose your preferred mirrors.

sudo pacman-mirrors --interactive && sudo pacman -Syyu

Interactive mode
Interactive mode

After fetching the server list, you will be able to select the server. Click on the desired server checkbox and click “OK”.

Select preferred server
Select preferred server

One Final Step – Synchronizing your database

To apply the new mirror list to your system such that pacman will start using it for next updates, you must synchronize the database. This will ensure that your Manjaro’s database is up to date and will help avoid any potential packages download problems later on.

To synchronize, enter the following command:

sudo pacman -Syyu

That’s it! The settings change is applied instantly. There is no need to reboot.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

2 COMMENTS

  1. Thank you. I read somewhere that it’s better to select more than 1 server (i.e 3 fastest local+) in case a server is not fully maintained or updated. Is that accurate and could I do it in the interactive process you described?

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,325FansLike
190FollowersFollow

LATEST ARTICLES

How to create a bootable CentOS Live USB drive on Windows

create centOS Live USB drive
CentOS ISO downloads are available in two different variations - Minimal ISO and DVD ISO. So what are these? In this guide, you will know how to create a CentOS Live USB drive that can also be used to install CentOS.

RECENT COMMENTS

Application Launchers for Ubuntu
Ubuntu is one of the most used Linux distributions worldwide. It is also the reason why it has the maximum number of available programs for itself. Today we are going to talk about one category of those programs, the application launchers.
Uninstall Programs in Ubuntu
Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.
Free up hard disk space ubuntu
Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.