Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save minhtran83/01f65afa4cee49b108c228f45e781614 to your computer and use it in GitHub Desktop.
Save minhtran83/01f65afa4cee49b108c228f45e781614 to your computer and use it in GitHub Desktop.

Revisions

  1. @sr75 sr75 revised this gist Apr 26, 2014. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion wget-jdk-oracle-install-example.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,17 @@
    http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6

    # rpm
    wget --no-cookies \
    --no-check-certificate \
    --header "Cookie: oraclelicense=accept-securebackup-cookie" \
    "http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
    -O jdk-7-linux-x64.rpm
    -O jdk-7-linux-x64.rpm

    # ubuntu
    wget --no-cookies \
    --no-check-certificate \
    --header "Cookie: oraclelicense=accept-securebackup-cookie" \
    "http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz" \
    -O jdk-7-linux-x64.tar.gz
    # then
    tar -xzvf jdk-7-linux-x64.tar.gz
  2. @sr75 sr75 renamed this gist Apr 22, 2014. 1 changed file with 0 additions and 0 deletions.
  3. @sr75 sr75 created this gist Apr 22, 2014.
    7 changes: 7 additions & 0 deletions wget-jdk-oracle-example.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6

    wget --no-cookies \
    --no-check-certificate \
    --header "Cookie: oraclelicense=accept-securebackup-cookie" \
    "http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
    -O jdk-7-linux-x64.rpm