Skip to content

Instantly share code, notes, and snippets.

@BoyCook
Last active July 8, 2017 10:28
Show Gist options
  • Save BoyCook/dccbd2cd1e5dc9b61df0fe32a9d562bf to your computer and use it in GitHub Desktop.
Save BoyCook/dccbd2cd1e5dc9b61df0fe32a9d562bf to your computer and use it in GitHub Desktop.
#!/bin/sh
BASE_URL=http://download.oracle.com/otn-pub/java/jdk
JAVA_URL="$BASE_URL/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm"
curl -L -C - -b "oraclelicense=accept-securebackup-cookie" -O "${JAVA_URL}"
sudo yum localinstall jdk-8u131-linux-x64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment