Skip to content

Instantly share code, notes, and snippets.

@cwilper
Last active August 29, 2015 14:23
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 cwilper/0d7506b03906f0676541 to your computer and use it in GitHub Desktop.
Save cwilper/0d7506b03906f0676541 to your computer and use it in GitHub Desktop.
wget commandline for oracle jdk unattended install
# Find the url to the latest .tar.gz for linux at the following url and populate it below:
# http://www.oracle.com/technetwork/java/javase/downloads/index.html
URL=??
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" $URL
rpm -y install filename.tar.gz
# If you want to set it/select it as the system-wide "alternative" on CentOS/RHEL,
# see http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment