OS/Rocky Linux

Rocky Linux 9 (9.5) OpenJDK install

강서버 2025. 4. 2. 06:02
반응형

 

- Install OpenJDK 21

$ sudo dnf install java-21-openjdk

or

$ sudo yum install java-21-openjdk

 

- Install OpenJDK 17

$ sudo dnf install java-17openjdk

or

$ sudo yum install java-17openjdk

 

- Install OpenJDK 11

$ sudo dnf install java-11-openjdk

or

$ sudo yum install java-11-openjdk

 

 

[ Execution Log ] (* OpenJDK 21 installation log)

[gangserver@localhost ~]$ sudo dnf install java-21-openjdk
마지막 메타자료 만료확인(0:09:40 이전): 2025년 04월 02일 (수) 오전 05시 46분 30초.
종속성이 해결되었습니다.
================================================================================
 꾸러미                      구조      버전                  저장소        크기
================================================================================
설치 중:
 java-21-openjdk             x86_64    1:21.0.6.0.7-1.el9    appstream    428 k
종속 꾸러미 설치 중:
 copy-jdk-configs            noarch    4.0-3.el9             appstream     27 k
 java-21-openjdk-headless    x86_64    1:21.0.6.0.7-1.el9    appstream     47 M
 javapackages-filesystem     noarch    6.0.0-7.el9_5         appstream    9.9 k
 lksctp-tools                x86_64    1.0.19-3.el9_4        baseos        96 k
 lua                         x86_64    5.4.4-4.el9           appstream    187 k
 lua-posix                   x86_64    35.0-8.el9            appstream    131 k
 mkfontscale                 x86_64    1.2.1-3.el9           appstream     31 k
 ttmkfdir                    x86_64    3.0.9-65.el9          appstream     52 k
 tzdata-java                 noarch    2025a-1.el9           appstream    145 k
 xorg-x11-fonts-Type1        noarch    7.5-33.el9            appstream    499 k

연결 요약
================================================================================
설치  11 꾸러미

전체 내려받기 크기: 49 M
설치된 크기 : 208 M
진행할까요? [y/N]: y
꾸러미 내려받기 중:
(1/11): javapackages-filesystem-6.0.0-7.el9_5.n 114 kB/s | 9.9 kB     00:00    
(2/11): lksctp-tools-1.0.19-3.el9_4.x86_64.rpm  916 kB/s |  96 kB     00:00    
(3/11): copy-jdk-configs-4.0-3.el9.noarch.rpm   746 kB/s |  27 kB     00:00    
(4/11): lua-5.4.4-4.el9.x86_64.rpm              2.6 MB/s | 187 kB     00:00    
(5/11): lua-posix-35.0-8.el9.x86_64.rpm         1.6 MB/s | 131 kB     00:00    
(6/11): tzdata-java-2025a-1.el9.noarch.rpm      2.2 MB/s | 145 kB     00:00    
(7/11): xorg-x11-fonts-Type1-7.5-33.el9.noarch. 1.6 MB/s | 499 kB     00:00    
(8/11): ttmkfdir-3.0.9-65.el9.x86_64.rpm        458 kB/s |  52 kB     00:00    
(9/11): mkfontscale-1.2.1-3.el9.x86_64.rpm      313 kB/s |  31 kB     00:00    
(10/11): java-21-openjdk-21.0.6.0.7-1.el9.x86_6 1.5 MB/s | 428 kB     00:00    
(11/11): java-21-openjdk-headless-21.0.6.0.7-1. 8.5 MB/s |  47 MB     00:05    
--------------------------------------------------------------------------------
합계                                            7.1 MB/s |  49 MB     00:06     
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
  구현 중     : copy-jdk-configs-4.0-3.el9.noarch                           1/1 
  구현 중     : java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64          1/1 
  준비 중     :                                                             1/1 
  설치 중     : mkfontscale-1.2.1-3.el9.x86_64                             1/11 
  설치 중     : ttmkfdir-3.0.9-65.el9.x86_64                               2/11 
  설치 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     3/11 
  구현 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     3/11 
  설치 중     : tzdata-java-2025a-1.el9.noarch                             4/11 
  설치 중     : lua-posix-35.0-8.el9.x86_64                                5/11 
  설치 중     : lua-5.4.4-4.el9.x86_64                                     6/11 
  설치 중     : copy-jdk-configs-4.0-3.el9.noarch                          7/11 
  설치 중     : javapackages-filesystem-6.0.0-7.el9_5.noarch               8/11 
  설치 중     : lksctp-tools-1.0.19-3.el9_4.x86_64                         9/11 
  설치 중     : java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64        10/11 
  구현 중     : java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64        10/11 
  설치 중     : java-21-openjdk-1:21.0.6.0.7-1.el9.x86_64                 11/11 
  구현 중     : java-21-openjdk-1:21.0.6.0.7-1.el9.x86_64                 11/11 
  구현 중     : copy-jdk-configs-4.0-3.el9.noarch                         11/11 
  구현 중     : java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64        11/11 
  구현 중     : java-21-openjdk-1:21.0.6.0.7-1.el9.x86_64                 11/11 
  확인 중     : lksctp-tools-1.0.19-3.el9_4.x86_64                         1/11 
  확인 중     : javapackages-filesystem-6.0.0-7.el9_5.noarch               2/11 
  확인 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     3/11 
  확인 중     : copy-jdk-configs-4.0-3.el9.noarch                          4/11 
  확인 중     : lua-5.4.4-4.el9.x86_64                                     5/11 
  확인 중     : lua-posix-35.0-8.el9.x86_64                                6/11 
  확인 중     : tzdata-java-2025a-1.el9.noarch                             7/11 
  확인 중     : ttmkfdir-3.0.9-65.el9.x86_64                               8/11 
  확인 중     : mkfontscale-1.2.1-3.el9.x86_64                             9/11 
  확인 중     : java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64        10/11 
  확인 중     : java-21-openjdk-1:21.0.6.0.7-1.el9.x86_64                 11/11 

설치되었습니다:
  copy-jdk-configs-4.0-3.el9.noarch                                             
  java-21-openjdk-1:21.0.6.0.7-1.el9.x86_64                                     
  java-21-openjdk-headless-1:21.0.6.0.7-1.el9.x86_64                            
  javapackages-filesystem-6.0.0-7.el9_5.noarch                                  
  lksctp-tools-1.0.19-3.el9_4.x86_64                                            
  lua-5.4.4-4.el9.x86_64                                                        
  lua-posix-35.0-8.el9.x86_64                                                   
  mkfontscale-1.2.1-3.el9.x86_64                                                
  ttmkfdir-3.0.9-65.el9.x86_64                                                  
  tzdata-java-2025a-1.el9.noarch                                                
  xorg-x11-fonts-Type1-7.5-33.el9.noarch                                        

완료되었습니다!

 

 

- Check java version

$ java -version

 

[ Execution Log ]

[gangserver@localhost ~]$ java -version
openjdk version "21.0.6" 2025-01-21 LTS
OpenJDK Runtime Environment (Red_Hat-21.0.6.0.7-1) (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-21.0.6.0.7-1) (build 21.0.6+7-LTS, mixed mode, sharing)

 

반응형