Forked from sr75/wget-jdk-oracle-install-example.txt
Last active
August 29, 2015 14:23
-
-
Save zanhsieh/55a98a5da9f958276251 to your computer and use it in GitHub Desktop.
wget-jdk-oracle-install-example.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment