Skip to content

Instantly share code, notes, and snippets.

@nixcraft
Last active June 20, 2017 00:28
Show Gist options
  • Save nixcraft/dfdd414fac733556eafdbd8e848bd80f to your computer and use it in GitHub Desktop.
Save nixcraft/dfdd414fac733556eafdbd8e848bd80f to your computer and use it in GitHub Desktop.
Download Debian 9 DVD images
#!/bin/bash
# Purpose getdeb9: Download Debian 9 DVD images
# Author: Vivek Gite, under GPL v.2.0+
# Tip: run it using screen session :)
# Added $_version for easy downloads
# Updated for Debian 9.x
# ------------------------------------------------------
_bit="${1:-64}"
_arch="i386"
#
# Note: current == latest stable
#
_version="current"
_ver="9.0.0"
_base="https://cdimage.debian.org/debian-cd/${_version}/i386/iso-dvd"
[ "$_bit" == "64" ] &&{ _base="https://cdimage.debian.org/debian-cd/${_version}/amd64/iso-dvd"; _arch="amd64";}
echo "Downloading Debian GNU/Linux v${_version} ${_bit} bit ISO images..."
for i in {1..3}
do
_image="${_base}/debian-${_ver}-${_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