Finding the fastest mirror: Difference between revisions
m (remove the mkdir) |
m (remove L and /tmp dir) |
||
Line 2: | Line 2: | ||
{{Cat|/home/user/fastestmirror|<nowiki> | {{Cat|/home/user/fastestmirror|<nowiki> | ||
data="" | data="" | ||
for s in $ | for s in $(wget -qO- http://rsync.alpinelinux.org/alpine/MIRRORS.txt); do | ||
t=$(time -f "%E" wget -q $s/MIRRORS.txt -O / | t=$(time -f "%E" wget -q $s/MIRRORS.txt -O /dev/null 2>&1) | ||
echo "$s was $t" | echo "$s was $t" | ||
data="$data$t $s\n" | data="$data$t $s\n" |
Revision as of 02:16, 22 February 2018
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- http://rsync.alpinelinux.org/alpine/MIRRORS.txt); 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