HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

reflector — Arch script to fetch and sort mirrorlists. More information: <https://manned.org/reflector>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandsortclireflectorfetcharchscript
linux

Problem

How to use the reflector command: Arch script to fetch and sort mirrorlists. More information: <https://manned.org/reflector>.

Solution

reflector — Arch script to fetch and sort mirrorlists. More information: <https://manned.org/reflector>.

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]}}

Code Snippets

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]}}

Context

tldr-pages: linux/reflector

Revisions (0)

No revisions yet.