Tianhe Gao

Get fastest pacman mirrors

Way 2&3 need rankmirrors, which provided by pacman-contrib

Way 1

  1. Go to successfully syncing mirrors of archlinux mirror status page: https://archlinux.org/mirrors/status/#successful
  2. Copy the first several mirrors, https protocol for privacy, 100% completion needed, the less mirror score, the better
  3. Organize mirrors into this format:

    1Server = MIRROR_URL_COPIED/$repo/os/$arch
    2
    3example:
    4
    5Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
  4. Save this file to /etc/pacman.d/mirrorlist

Way 2

1curl -s "https://archlinux.org/mirrorlist/?country=CN&protocol=https&ip_version=4&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -

Save the output to way 1 step 4 file location

Way 3

  1. Install reflector
  2. txt reflector --sort rate --protocol https --latest 5 | rankmirrors -
  3. Save the output to way 1 step 4 file location

No notes link to this note