Post

Pacman setup mirrors and refresh keys

How to refresh Arch Linux pacman GPG keys and configure the fastest package mirrors using reflector.

These commands refresh the pacman keyring (useful when encountering signature verification errors) and then use reflector to automatically find and save the fastest HTTPS mirrors from nearby countries. Run these after a fresh Arch Linux install or when mirrors become stale.

1
2
3
4
5
6
# refresh gpg keys if needed
sudo pacman-key --refresh-keys
sudo pacman-key --populate archlinux

# setup closest mirrors
reflector --country Slovakia --country Czechia --protocol https --age 12 --sort rate --save
This post is licensed under CC BY 4.0 by the author.