commands.sh

reflector

linux

Arch script to fetch and sort mirrorlists.

More info →

Options (4)

-c, --countryboolean

Only get German HTTPS mirrors

Example: reflector {{[-c|--country]}} {{Germany}} {{[-p|--protocol]}} {{https}}
-p, --protocolboolean

Only get German HTTPS mirrors

Example: reflector {{[-c|--country]}} {{Germany}} {{[-p|--protocol]}} {{https}}
-l, --latestboolean

Only get the 10 recently sync'd mirrors

Example: reflector {{[-l|--latest]}} {{10}}
-h, --helpboolean

Display help

Example: reflector {{[-h|--help]}}

Examples (5)

Get all mirrors, sort for download speed and save them

sudo reflector --sort rate --save /etc/pacman.d/mirrorlist

Only get German HTTPS mirrors

reflector [-c|--country] Germany [-p|--protocol] https

Only get the 10 recently sync'd mirrors

reflector [-l|--latest] 10

Use a configuration file to fetch mirrors

sudo reflector @/etc/xdg/reflector/reflector.conf

Display help

reflector [-h|--help]
made by @shridhargupta | data from tldr-pages