Skip to content

Instantly share code, notes, and snippets.

@lucasburlingham
Last active April 10, 2022 21:02
Show Gist options
  • Save lucasburlingham/fa8653bc155e1817c92b4c8f2a8c340f to your computer and use it in GitHub Desktop.
Save lucasburlingham/fa8653bc155e1817c92b4c8f2a8c340f to your computer and use it in GitHub Desktop.
Get all LFS dependancies from the jaleco mirror
curl "http://mirror.jaleco.com/lfs/pub/lfs/lfs-packages/10.0/" \
grep "<a href" | \
awk '{print $2}' | \
sed 's/href="/http:\/\/mirror.jaleco.com\/lfs\/pub\/lfs\/lfs-packages\/10.0\//' | \
sed 's/<//' | \
sed 's/">/ /' | \
sed 's/\/a><\/td><td>//' | \
awk '{print $1}' | \
grep -v "https://www.jaleco.com" | \
grep -v "?C=N&O=A" | \
while read TARGET; \
do wget $TARGET; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment