본문 바로가기

Languages/java

[java] centos java 1.8 설치

728x90
반응형

1. yum install java-1.8.0-openjdk 

# yum install java-1.8.0-openjdk
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     | 7.9 kB     00:00     
 * base: mirror.navercorp.com
 * epel: mirror-icn.misakamikoto.network
 * extras: mirror.navercorp.com
 * updates: mirror.kakao.com
base                                                     | 3.6 kB     00:00     
epel                                                     | 4.7 kB     00:00     
extras                                                   | 2.9 kB     00:00     
mysql-connectors-community                               | 2.6 kB     00:00     
mysql-tools-community                                    | 2.6 kB     00:00     
mysql80-community                                        | 2.6 kB     00:00     
updates                                                  | 2.9 kB     00:00     
(1/2): epel/x86_64/updateinfo                              | 1.0 MB   00:00     
(2/2): epel/x86_64/primary 15% [==              ]  46 kB/s | 1.2 MB   02:32 ETA 
...
Total download size: 46 M
Installed size: 153 M
Is this ok [y/d/N]: y
Downloading packages:
(1/64): copy-jdk-configs-3.3-11.el7_9.noarch.rpm           |  22 kB   00:00     
(2/64): atk-2.28.1-2.el7.x86_64.rpm                        | 263 kB   00:00     
(3/64): dejavu-fonts-common-2.33-6.el7.noarch.rpm          |  64 kB   00:00     
(4/64): cups-libs-1.6.3-51.el7.x86_64.rpm                  | 359 kB   00:00     
(5/64): fontpackages-filesystem-1.44-8.el7.noarch.rpm      | 9.9 kB   00:00     
(6/64): fribidi-1.0.2-1.el7_7.1.x86_64.rpm                 |  79 kB   00:00     
(7/64): fontconfig-2.13.0-4.3.el7.x86_64.rpm               | 254 kB   00:00     
(8/64): dejavu-sans-fonts-2.33-6.el7.noarch.rpm            | 1.4 MB   00:00     
(9/64): giflib-4.1.6-9.el7.x86_64.rpm                      |
....
..
  libxshmfence.x86_64 0:1.2-1.el7                                               
  libxslt.x86_64 0:1.1.28-6.el7                                                 
  lksctp-tools.x86_64 0:1.0.17-2.el7                                            
  mesa-libEGL.x86_64 0:18.3.4-12.el7_9                                          
  mesa-libGL.x86_64 0:18.3.4-12.el7_9                                           
  mesa-libgbm.x86_64 0:18.3.4-12.el7_9                                          
  mesa-libglapi.x86_64 0:18.3.4-12.el7_9                                        
  pango.x86_64 0:1.42.4-4.el7_7                                                 
  pcsc-lite-libs.x86_64 0:1.8.8-8.el7                                           
  pixman.x86_64 0:0.34.0-1.el7                                                  
  python-javapackages.noarch 0:3.4.1-11.el7                                     
  python-lxml.x86_64 0:3.2.1-4.el7                                              
  ttmkfdir.x86_64 0:3.0.9-42.el7                                                
  tzdata-java.noarch 0:2023c-1.el7                                              
  xorg-x11-font-utils.x86_64 1:7.5-21.el7                                       
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                                       

Complete!

2. yum install java-1.8.0-openjdk-devel

#yum install java-1.8.0-openjdk-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * epel: mirror-icn.misakamikoto.network
 * extras: mirror.navercorp.com
 * updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch     Version                    Repository
                                                                           Size
================================================================================
Installing:
 java-1.8.0-openjdk-devel   x86_64   1:1.8.0.362.b08-1.el7_9    updates   9.8 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 9.8 M
Installed size: 40 M
Is this ok [y/d/N]: 
...
..
Total download size: 9.8 M
Installed size: 40 M
Is this ok [y/d/N]: y
Downloading packages:
java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64.rpm  | 9.8 MB   00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64      1/1 
  Verifying  : 1:java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64      1/1 

Installed:
  java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9                       

Complete!

3. 설치확인

]# java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-b08)
OpenJDK 64-Bit Server VM (build 25.362-b08, mixed mode)
728x90
반응형