OS/CentOS

CentOS Stream 9 OpenJDK 17 Install / Uninstall

강서버 2025. 2. 26. 19:24
728x90
반응형

1. Install

 

2. Uninstall

 

 

Install

$ sudo dnf install java-17-openjdk

 

[gangserver@localhost ~]$ sudo dnf remove java-17-openjdk
일치하는 인수가 없습니다: java-17-openjdk
제거 대상 꾸러미가 없습니다.
종속성이 해결되었습니다.
처리가 필요하지 않습니다.
완료되었습니다!
[gangserver@localhost ~]$ sudo dnf install java-17-openjdk
마지막 메타자료 만료확인(0:08:18 이전): 2025년 02월 26일 (수) 오후 07시 13분 36초.
종속성이 해결되었습니다.
================================================================================
 꾸러미                     구조     버전                     저장소       크기
================================================================================
설치 중:
 java-17-openjdk            x86_64   1:17.0.14.0.7-2.el9      appstream   431 k
종속 꾸러미 설치 중:
 copy-jdk-configs           noarch   4.0-3.el9                appstream    28 k
 java-17-openjdk-headless   x86_64   1:17.0.14.0.7-2.el9      appstream    44 M
 javapackages-filesystem    noarch   6.4.0-1.el9              appstream    13 k
 lksctp-tools               x86_64   1.0.19-2.el9             baseos       94 k
 lua                        x86_64   5.4.4-4.el9              appstream   188 k
 lua-posix                  x86_64   35.0-8.el9               appstream   151 k
 mkfontscale                x86_64   1.2.1-3.el9              appstream    32 k
 ttmkfdir                   x86_64   3.0.9-65.el9             appstream    53 k
 tzdata-java                noarch   2025a-1.el9              appstream   224 k
 xorg-x11-fonts-Type1       noarch   7.5-33.el9               appstream   505 k

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

전체 내려받기 크기: 46 M
설치된 크기 : 189 M
진행할까요? [y/N]: y
꾸러미 내려받기 중:
(1/11): copy-jdk-configs-4.0-3.el9.noarch.rpm    71 kB/s |  28 kB     00:00    
(2/11): java-17-openjdk-17.0.14.0.7-2.el9.x86_6 933 kB/s | 431 kB     00:00    
(3/11): lksctp-tools-1.0.19-2.el9.x86_64.rpm    160 kB/s |  94 kB     00:00    
(4/11): javapackages-filesystem-6.4.0-1.el9.noa  51 kB/s |  13 kB     00:00    
(5/11): lua-5.4.4-4.el9.x86_64.rpm              986 kB/s | 188 kB     00:00    
(6/11): lua-posix-35.0-8.el9.x86_64.rpm         911 kB/s | 151 kB     00:00    
(7/11): mkfontscale-1.2.1-3.el9.x86_64.rpm      211 kB/s |  32 kB     00:00    
(8/11): ttmkfdir-3.0.9-65.el9.x86_64.rpm        373 kB/s |  53 kB     00:00    
(9/11): tzdata-java-2025a-1.el9.noarch.rpm      1.2 MB/s | 224 kB     00:00    
(10/11): xorg-x11-fonts-Type1-7.5-33.el9.noarch 1.4 MB/s | 505 kB     00:00    
(11/11): java-17-openjdk-headless-17.0.14.0.7-2 8.1 MB/s |  44 MB     00:05    
--------------------------------------------------------------------------------
합계                                            5.8 MB/s |  46 MB     00:07     
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
  구현 중     : copy-jdk-configs-4.0-3.el9.noarch                           1/1 
  구현 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64         1/1 
  준비 중     :                                                             1/1 
  설치 중     : tzdata-java-2025a-1.el9.noarch                             1/11 
  설치 중     : ttmkfdir-3.0.9-65.el9.x86_64                               2/11 
  설치 중     : mkfontscale-1.2.1-3.el9.x86_64                             3/11 
  설치 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     4/11 
  구현 중     : xorg-x11-fonts-Type1-7.5-33.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.4.0-1.el9.noarch                 8/11 
  설치 중     : lksctp-tools-1.0.19-2.el9.x86_64                           9/11 
  설치 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64       10/11 
  구현 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64       10/11 
  설치 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                11/11 
  구현 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                11/11 
  구현 중     : copy-jdk-configs-4.0-3.el9.noarch                         11/11 
  구현 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64       11/11 
  구현 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                11/11 
  확인 중     : lksctp-tools-1.0.19-2.el9.x86_64                           1/11 
  확인 중     : copy-jdk-configs-4.0-3.el9.noarch                          2/11 
  확인 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                 3/11 
  확인 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64        4/11 
  확인 중     : javapackages-filesystem-6.4.0-1.el9.noarch                 5/11 
  확인 중     : lua-5.4.4-4.el9.x86_64                                     6/11 
  확인 중     : lua-posix-35.0-8.el9.x86_64                                7/11 
  확인 중     : mkfontscale-1.2.1-3.el9.x86_64                             8/11 
  확인 중     : ttmkfdir-3.0.9-65.el9.x86_64                               9/11 
  확인 중     : tzdata-java-2025a-1.el9.noarch                            10/11 
  확인 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                    11/11 

설치되었습니다:
  copy-jdk-configs-4.0-3.el9.noarch                                             
  java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                                    
  java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64                           
  javapackages-filesystem-6.4.0-1.el9.noarch                                    
  lksctp-tools-1.0.19-2.el9.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                                        

완료되었습니다!

 

 

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

 

 

 

Uninstall

$ sudo dnf remove java-17-openjdk

 

[gangserver@localhost ~]$ sudo dnf remove java-17-openjdk
종속성이 해결되었습니다.
================================================================================
 꾸러미                     구조     버전                    저장소        크기
================================================================================
삭제 중:
 java-17-openjdk            x86_64   1:17.0.14.0.7-2.el9     @appstream   1.1 M
사용하지 않는 종속 꾸러미 제거:
 copy-jdk-configs           noarch   4.0-3.el9               @appstream    19 k
 java-17-openjdk-headless   x86_64   1:17.0.14.0.7-2.el9     @appstream   185 M
 javapackages-filesystem    noarch   6.4.0-1.el9             @appstream   2.0 k
 lksctp-tools               x86_64   1.0.19-2.el9            @baseos      266 k
 lua                        x86_64   5.4.4-4.el9             @appstream   593 k
 lua-posix                  x86_64   35.0-8.el9              @appstream   614 k
 mkfontscale                x86_64   1.2.1-3.el9             @appstream    54 k
 ttmkfdir                   x86_64   3.0.9-65.el9            @appstream   115 k
 tzdata-java                noarch   2025a-1.el9             @appstream   330 k
 xorg-x11-fonts-Type1       noarch   7.5-33.el9              @appstream   863 k

연결 요약
================================================================================
삭제  11 꾸러미

사용 가능한 공간 : 189 M
진행할까요? [y/N]: y
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
  준비 중     :                                                             1/1 
  삭제 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                 1/11 
  구현 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                 1/11 
  삭제 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     2/11 
  구현 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                     2/11 
  삭제 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64        3/11 
  구현 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64        3/11 
  삭제 중     : copy-jdk-configs-4.0-3.el9.noarch                          4/11 
  삭제 중     : javapackages-filesystem-6.4.0-1.el9.noarch                 5/11 
  삭제 중     : tzdata-java-2025a-1.el9.noarch                             6/11 
  삭제 중     : lua-5.4.4-4.el9.x86_64                                     7/11 
  삭제 중     : lua-posix-35.0-8.el9.x86_64                                8/11 
  삭제 중     : lksctp-tools-1.0.19-2.el9.x86_64                           9/11 
  삭제 중     : mkfontscale-1.2.1-3.el9.x86_64                            10/11 
  삭제 중     : ttmkfdir-3.0.9-65.el9.x86_64                              11/11 
  구현 중     : ttmkfdir-3.0.9-65.el9.x86_64                              11/11 
  확인 중     : copy-jdk-configs-4.0-3.el9.noarch                          1/11 
  확인 중     : java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                 2/11 
  확인 중     : java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64        3/11 
  확인 중     : javapackages-filesystem-6.4.0-1.el9.noarch                 4/11 
  확인 중     : lksctp-tools-1.0.19-2.el9.x86_64                           5/11 
  확인 중     : lua-5.4.4-4.el9.x86_64                                     6/11 
  확인 중     : lua-posix-35.0-8.el9.x86_64                                7/11 
  확인 중     : mkfontscale-1.2.1-3.el9.x86_64                             8/11 
  확인 중     : ttmkfdir-3.0.9-65.el9.x86_64                               9/11 
  확인 중     : tzdata-java-2025a-1.el9.noarch                            10/11 
  확인 중     : xorg-x11-fonts-Type1-7.5-33.el9.noarch                    11/11 

제거되었습니다:
  copy-jdk-configs-4.0-3.el9.noarch                                             
  java-17-openjdk-1:17.0.14.0.7-2.el9.x86_64                                    
  java-17-openjdk-headless-1:17.0.14.0.7-2.el9.x86_64                           
  javapackages-filesystem-6.4.0-1.el9.noarch                                    
  lksctp-tools-1.0.19-2.el9.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                                        

완료되었습니다!

 

728x90
반응형