Skip to content

Arch Linux Mirror Setup

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Arch Linux Mirror Setup Guide

Complete beginner-friendly guide to mirror setup on Arch Linux, including mirror selection, mirror ranking, and mirror synchronization.


Table of Contents

  1. Using Reflector
  2. Manual Mirror Selection
  3. Mirror Ranking
  4. Troubleshooting

Using Reflector

Install Reflector

Install Reflector:

# Install Reflector
sudo pacman -S reflector

# Generate mirrors
sudo reflector --country "United States" --latest 10 --sort rate --save /etc/pacman.d/mirrorlist

Reflector Options

Common options:

# Top 10 by rate
sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist

# By country
sudo reflector --country "United States" --latest 20 --sort rate --save /etc/pacman.d/mirrorlist

# HTTPS only
sudo reflector --latest 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist

Manual Mirror Selection

Edit Mirrorlist

Edit manually:

# Edit mirrorlist
sudo vim /etc/pacman.d/mirrorlist

# Uncomment preferred mirrors
# Order matters - first is tried first

Mirror Format

Mirror format:

Server = https://mirror.example.com/archlinux/$repo/os/$arch

Mirror Ranking

Test Mirrors

Test speed:

# Install rankmirrors
sudo pacman -S pacman-contrib

# Rank mirrors
rankmirrors -n 10 /etc/pacman.d/mirrorlist

Troubleshooting

Slow Downloads

Change mirror:

# Use Reflector
sudo reflector --country "United States" --latest 10 --sort rate --save /etc/pacman.d/mirrorlist

# Update
sudo pacman -Syu

Summary

This guide covered mirror setup, Reflector, manual selection, and troubleshooting.


Next Steps


This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.

Clone this wiki locally