Finding the fastest mirror

From Alpine Linux
Revision as of 14:41, 13 September 2019 by Innsill (talk | contribs) (+ Category:Package Manager)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

After you install Alpine, you may be wondering how do I figure out the fastest mirror again?

Contents of /home/user/fastestmirror

data="" for s in $(wget -qO-; do t=$(time -f "%E" wget -q $s/MIRRORS.txt -O /dev/null 2>&1) echo "$s was $t" data="$data$t $s\n" done echo "===RESULTS===" echo -e $data | sort