Skip to content

Instantly share code, notes, and snippets.

@goldeneggg
Created June 1, 2013 12:21
Show Gist options
  • Save goldeneggg/5690200 to your computer and use it in GitHub Desktop.
Save goldeneggg/5690200 to your computer and use it in GitHub Desktop.
oracle.comからjdkをwgetでダウンロードする
#!/bin/sh
VER=7u21
HTML_NO=1505220
BETA_VER=b11
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-${VER}-download-${HTML_NO}.html;" http://download.oracle.com/otn-pub/java/jdk/${VER}-${BETA_VER}/jdk-${VER}-linux-x64.rpm -O jdk-${VER}.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment