Sunday, August 27, 2017

Find fastest mirror

This is for arch Linux but the simple technique can be used to sort any other mirrors.

First create a backup of the original /etc/pacman.d/mirrorlist as /etc/pacman.d/mirrorlist.orig

Then create the following simple script:

awk -F'/' '{print $3}' /etc/pacman.d/mirrorlist.orig | grep -v '^$' | while read line;
HEAD $line &>/dev/null && grep -B1 $line /etc/pacman.d/mirrorlist.orig&
done > /etc/pacman.d/mirrorlist

Running this script will create the sorted list of mirrors in /etc/pacman.d/mirrorlist based on how fast the mirror response for the HTTP request.


  1. This comment has been removed by a blog administrator.

  2. This comment has been removed by the author.

  3. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    rpa training in chennai | best rpa training in chennai | rpa training in chennai | rpa training in bangalore
    rpa training in pune | rpa online training

  4. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.

    Data Science Training in Chennai | Data Science training in anna nagar
    Data Science training in chennai | Data science training in Bangalore
    Data Science training in marathahalli | Data Science training in btm

  5. Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
    java training in chennai | java training in bangalore

    java training in tambaram | java training in velachery

  6. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.
    python training in rajajinagar
    Python training in btm
    Python training in usa

  7. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 

    best rpa training in chennai | rpa online training |
    rpa training in chennai |
    rpa training in bangalore
    rpa training in pune

  8. Amazing post!!! This post is very comprehensive and i learn more ideas. Thanks for your post, i like more updates from your blog...
    PHP Training in Bangalore
    PHP Course in Bangalore
    PHP Course in Perambur
    PHP Classes near me
    PHP Training in Karappakkam