--- title: "Reflector" category: "Desktop and system" tagline: "Keeps pacman on fast mirrors that are up to date with Arch." source: "pacman" package: "reflector" command: "reflector" code: "https://xyne.dev/projects/reflector/" links: - name: "Reflector on the Arch wiki" url: "https://wiki.archlinux.org/title/Reflector" --- ## What it is Reflector fetches the list of Arch Linux mirrors, filters it by how recently each one synced with Arch, and ranks them by speed. It writes the result to `/etc/pacman.d/mirrorlist`, the list pacman downloads packages from. ## Why it's here - **A stale mirror fails quietly.** A mirror that stops syncing doesn't cause an error: `update` and `version` just stop seeing new packages, such as a new kernel. Reflector keeps pacman on mirrors that are current. - **Faster downloads.** Mirrors are sorted by download rate. ## On CoreDesktop CoreDesktop installs Reflector from pacman and turns on its weekly timer. Its settings, in `/etc/xdg/reflector/reflector.conf`, choose HTTPS mirrors that synced with Arch in the last 12 hours, fastest first. On top of that, [`update`](/utilities/#update) switches to fresh mirrors straight away if yours has fallen a day behind. To choose your own mirrors, delete the first (CoreDesktop) line of `reflector.conf` and edit the rest; CoreDesktop then leaves it alone. To stop CoreDesktop changing your mirrors at all, add `reflector` to `~/.config/coredesktop/skip-packages`.