Last active
March 16, 2023 11:28
-
Star
(113)
You must be signed in to star a gist -
Fork
(50)
You must be signed in to fork a gist
-
-
Save sr75/11187116 to your computer and use it in GitHub Desktop.
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
This file contains 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: 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 | |
# 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 |
None of the above commands seems to work anymore.
I was able to download it with the following:
wget \
--continue \
--no-check-certificate \
-O jdk-11.0.4_linux-x64_bin.rpm \
--header "Cookie: oraclelicense=a" \
"https://download.oracle.com/otn/java/jdk/11.0.4+10/cf1bbcbf431a474eb9fc550051f4ee78/jdk-11.0.4_linux-x64_bin.rpm?AuthParam=1567225725_a1c0cdc68062ddd501584d78c7030671"
This may also help: https://stackoverflow.com/a/10959815/2184122
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tried the above and doesnt work anymore
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz
We are getting the below error
"HTTP request sent, awaiting response... 401 Authorization Required"