Skip to content

Instantly share code, notes, and snippets.

@alexejk
Last active July 6, 2017 08:36
Show Gist options
  • Save alexejk/1265e4757262401dac1827049782a4a1 to your computer and use it in GitHub Desktop.
Save alexejk/1265e4757262401dac1827049782a4a1 to your computer and use it in GitHub Desktop.
Oracle JVM download with Curl/Wget

How-to: Oracle JVM download

You need to get the correct URL from Oracle.com Each new release changes a hash and just substitution of links won't work.

Using wget

Usage: wget --no-cookies --header "Cookie: oraclelicense=a" <URL>

For example:
wget --no-cookies --header "Cookie: oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm

Using curl

Usage: curl -L -b "oraclelicense=a" <URL> -O

For example:
curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm -O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment