I will introduce the procedure to install java (jdk14) on CentOS7.
This time I got the rpm file
and installed it.
Download jdk-14_linux-x64_bin.rpm
with the following command.
curl -OL -b "oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/14+36/076bab302c7b4508975440c56f6cc26a/jdk-14_linux-x64_bin.rpm"
Execution result
[root@CENTOS7 ~]# curl -OL -b "oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/14+36/076bab302c7b4508975440c56f6cc26a/jdk-14_linux-x64_bin.rpm"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 527 100 527 0 0 774 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 165M 100 165M 0 0 232k 0 0:12:06 0:12:06 --:--:-- 227k
[root@CENTOS7 ~]#
Check the hash value of jdk-14_linux-x64_bin.rpm
in [Java SE 14 Binaries Checksum](https://www.oracle.com/webfolder/s/digest/14checksum.html" Java SE 14 Binaries Checksum ") To do.
Since the hash value is sha256: c470c99df36a33274832828475766da3e054e0a12db454c1d7c97ae909a55ecb
, get the hash value of the downloaded file with the following command and check that it matches.
sha256sum jdk-14_linux-x64_bin.rpm
Execution result
[root@CENTOS7 ~]# sha256sum jdk-14_linux-x64_bin.rpm
c470c99df36a33274832828475766da3e054e0a12db454c1d7c97ae909a55ecb jdk-14_linux-x64_bin.rpm
[root@CENTOS7 ~]#
Install the jdk-14_linux-x64_bin.rpm
downloaded with the following command.
rpm -ivh jdk-14_linux-x64_bin.rpm
Execution result
[root@CENTOS7 ~]# rpm -ivh jdk-14_linux-x64_bin.rpm
warning: jdk-14_linux-x64_bin.rpm:Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ################################# [100%]
Updating/During installation...
1:jdk-14-2000:14-ga ################################# [100%]
[root@CENTOS7 ~]#
Confirm that jdk14 is installed with the following command.
java -version
which java
Execution result
[root@CENTOS7 ~]# java -version
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
[root@CENTOS7 ~]# which java
/usr/bin/java
[root@CENTOS7 ~]#
Installation of the JDK on Linux Platforms Java SE 14 Binaries Checksum Java SE Development Kit 14 - Downloads
that's all
Recommended Posts