Last active
May 24, 2021 21:22
-
-
Save buonzz/bbf9695cf3cc77f7cf292c20c6a897a4 to your computer and use it in GitHub Desktop.
update java 7 to 8 Centos
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
sudo yum remove java-1.7.0-openjdk | |
cd ~ | |
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/8u91-b14/jre-8u91-linux-i586.rpm" | |
sudo yum localinstall jre-8u91-linux-i586.rpm | |
rm ~/jre-8u91-linux-i586.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment