Rate-Mirrors at Arch Installation #44
-
During Arch installation, I would like to use rate-mirrors instead of reflector. Is that possible? I know it's not include in the main packages, whereas, reflector is. Also, no aur helpers are included. what are the least numbers of packages required to build rate-mirrors during installation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jaydip-c ! At the moment I don't have a machine to run archiso myself, but at least I checked the below in dockerized Arch. The below assumes export RATE_MIRRORS_VERSION=${RATE_MIRRORS_VERSION:-"v0.15.1"} \
RATE_MIRRORS_TMPDIR="$(mktemp -d tmp.XXXXXXXXXX)" \
RATE_MIRRORS_TMPFILE="$(mktemp)" \
&& echo $RATE_MIRRORS_TMPDIR \
&& curl \
https://github.com/westandskif/rate-mirrors/releases/download/$RATE_MIRRORS_VERSION/rate-mirrors-$RATE_MIRRORS_VERSION-x86_64-unknown-linux-musl.tar.gz \
--retry-connrefused -s -L -o "$RATE_MIRRORS_TMPDIR/rate-mirrors-bin.tar.gz" \
&& tar xzf "${RATE_MIRRORS_TMPDIR}/rate-mirrors-bin.tar.gz" --directory $RATE_MIRRORS_TMPDIR \
&& "$RATE_MIRRORS_TMPDIR/rate-mirrors-$RATE_MIRRORS_VERSION-x86_64-unknown-linux-musl/rate_mirrors" \
--allow-root \
--save=$RATE_MIRRORS_TMPFILE arch \
&& mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup 2>/dev/null || true \
&& mv $RATE_MIRRORS_TMPFILE /etc/pacman.d/mirrorlist \
&& chmod 0644 /etc/pacman.d/mirrorlist Should you try it, please let me know here. Thank you! |
Beta Was this translation helpful? Give feedback.
Hi @jaydip-c ! At the moment I don't have a machine to run archiso myself, but at least I checked the below in dockerized Arch.
The below assumes
curl
is available and you are at the Select the mirrors Arch installation step. It downloads binary version of the package, so it doesn't needgcc-libs
andcargo
to buildrate-mirrors
from source.