Skip to content

Instantly share code, notes, and snippets.

@barrbrain
Last active September 26, 2022 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrbrain/8faed785200d4fce2e909ada7f0d8bc3 to your computer and use it in GitHub Desktop.
Save barrbrain/8faed785200d4fce2e909ada7f0d8bc3 to your computer and use it in GitHub Desktop.
Seed a Clear Linux* Mirror
upstream=https://cdn-alt.download.clearlinux.org/update
mkdir mirror-download-clearlinux-org
cd mirror-download-clearlinux-org
format=30
latest=`curl -s $upstream/version/format$format/latest`
minversion=`curl -s $upstream/$latest/Manifest.MoM | awk '/^minversion:/{print$2}'`
for SUBDIR in 0 version $minversion
do wget --no-verbose --no-parent --recursive --no-host-directories -erobots=off --reject "index.html" \
$upstream/update/$SUBDIR/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment