Code Block |
---|
## 설치가능 openJDK 패키지 확인 [root@wiki-sanse-vm ~]$ yum list java*jdk-devel Loaded plugins: fastestmirror, langpacks Determining fastest mirrors base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 openlogic | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/5): openlogic/7/x86_64/primary_db | 90 kB 00:00:00 (2/5): base/7/x86_64/group_gz | 166 kB 00:00:00 (3/5): extras/7/x86_64/primary_db | 188 kB 00:00:00 (4/5): updates/7/x86_64/primary_db | 3.4 MB 00:00:01 (5/5): base/7/x86_64/primary_db | 6.0 MB 00:00:03 Available Packages java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.7.0-openjdk-devel.x86_64 1:1.7.0.211-2.6.17.1.el7_6 updates java-1.8.0-openjdk-devel.i686 1:1.8.0.212.b04-0.el7_6 updates java-1.8.0-openjdk-devel.x86_64 1:1.8.0.212.b04-0.el7_6 updates java-11-openjdk-devel.i686 1:11.0.3.7-0.el7_6 updates java-11-openjdk-devel.x86_64 1:11.0.3.7-0.el7_6 updates [root@wiki-sanse-vm ~]$ ## openJDK 1.8.0 설치 [root@wiki-sanse-vm ~]# yum install -y java-1.8.0-openjdk-devel.x86_64 Loaded plugins: fastestmirror, langpacks Determining fastest mirrors base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 openlogic | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/5): openlogic/7/x86_64/primary_db | 90 kB 00:00:00 (2/5): base/7/x86_64/group_gz | 166 kB 00:00:00 (3/5): extras/7/x86_64/primary_db | 188 kB 00:00:00 (4/5): updates/7/x86_64/primary_db | 3.4 MB 00:00:01 (5/5): base/7/x86_64/primary_db | 6.0 MB 00:00:02 Resolving Dependencies ## 설치 결과 확인 [root@wiki-sanse-vm ~]# rpm -qa java*jdk-devel java-1.8.0-openjdk-devel-1.8.0.212.b04-0.el7_6.x86_64 [root@wiki-sanse-vm ~]# [root@wiki-sanse-vm ~]# java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) [root@wiki-sanse-vm ~]# |
Page History
Overview
Content Tools