Skip to content

Instantly share code, notes, and snippets.

@sharmasourabh
Last active February 22, 2019 04:25
Show Gist options
  • Save sharmasourabh/0e439c84af4df7a80ea3e41cef5eae12 to your computer and use it in GitHub Desktop.
Save sharmasourabh/0e439c84af4df7a80ea3e41cef5eae12 to your computer and use it in GitHub Desktop.
Linux download JDK from Oracle using command line wget

RPM

Command

Would create the JDK directory under /usr/java.

wget --no-cookies --no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"https://download.oracle.com/otn-pub/ja va/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.rpm" \
-O jdk-8-linux-x64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment