Skip to content

Instantly share code, notes, and snippets.

@riipandi
Created May 15, 2012 22:22
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/2705584 to your computer and use it in GitHub Desktop.
Save riipandi/2705584 to your computer and use it in GitHub Desktop.
Download Ubuntu ISO DVD Repository
#!/bin/bash
# @des: Download Ubuntu ISO DVD Repository
# @author: Aris S. Ripandi <riespandi@gmail.com>
# @usage: chmod +x getubrepo && ./getubrepo 32
# ----------------------------------------------------------------------
_bit="${1:-64}"
_arch="i386"
_version="12.04"
_base="http://kambing.ui.ac.id/iso/ubuntu-repository/${_version}"
[ "$_bit" == "64" ] && { _arch="amd64"; }
echo "Downloading Debian GNU/Linux v${_version} ${_bit} bit DVD..."
for i in {1..11}
do
# build image path
_image="${_base}/ubuntu-${_version}-repository-${_arch}-${i}_contrib.iso"
wget -c $_image
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment