Skip to content

Instantly share code, notes, and snippets.

@riipandi
Created May 15, 2012 22:23
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 riipandi/2705593 to your computer and use it in GitHub Desktop.
Save riipandi/2705593 to your computer and use it in GitHub Desktop.
Download Debian Squeeze DVD images
#!/bin/bash
# getdeb6: Download Debian 6 DVD images
# Tip: run it over screen session
# Added $_version for easy upgrade
# @usage: chmod +x getubrepo && ./getubrepo 32
# ----------------------------------------------------------------------
_bit="${1:-64}"
_arch="i386"
_version="6.0.5"
_base="http://cdimage.debian.org/debian-cd/${_version}/i386/iso-dvd/"
[ "$_bit" == "64" ] && { _base="http://cdimage.debian.org/debian-cd/${_version}/amd64/iso-dvd/"; _arch="amd64"; }
echo "Downloading Debian GNU/Linux v${_version} ${_bit} bit DVD..."
for i in {1..8}
do
# build image path
_image="${_base}/debian-${_version}-${_arch}-DVD-${i}.iso"
wget -c $_image
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment