1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-07 12:55:27 +02:00
tldr/pages/linux/reflector.md

578 B

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