일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 이클립스
- 문자열
- RADIO
- 전자정부 표준프레임워크
- spring form tag
- 날짜
- 호환성
- Oracle
- json
- JSTL
- HTML5
- php
- null
- java
- 한글
- maven
- @RequestBody
- exception
- checbox
- 톰캣
- html
- MYSQL
- switch
- 오라클
- 네이버스마트 에디터
- SSL
- 웹 플랫폼 설치 관리자
- DB
- 스크립트
- jquery
- Today
- Total
개인적인 정리
리눅스에서 OpenJDK 설치(yum 설치) 본문
아무래도 yum으로 설치하는 것이 가장 쉽겠다.
yum 으로 조회를 해본다.
1. yum으로 조회
[root@localhost bin]# yum search java
마지막 메타 데이터 만료 확인 : 0:04:15 전에 2020년 03월 16일 (월) 오전 11시 50분 32초.
==================================================== 요약 & 이름 일치 함 : java ====================================================
java-atk-wrapper.x86_64 : Java ATK Wrapper
tzdata-java.noarch : Timezone data for Java
tzdata-java.noarch : Timezone data for Java
brlapi-java.x86_64 : Java binding for BrlAPI
byteman-javadoc.noarch : Javadoc for byteman
libguestfs-java.x86_64 : Java bindings for libguestfs
google-noto-sans-javanese-fonts.noarch : Sans Javanese font
libguestfs-javadoc.noarch : Java documentation for libguestfs
systemtap-runtime-java.x86_64 : Systemtap Java Runtime Support
javapackages-filesystem.noarch : Java packages filesystem layout
javapackages-filesystem.noarch : Java packages filesystem layout
libguestfs-java-devel.x86_64 : Java development package for libguestfs
javapackages-tools.noarch : Macros and scripts for Java packaging support
abrt-java-connector.x86_64 : JNI Agent library converting Java exceptions to ABRT problems
mariadb-java-client.noarch : Connects applications developed in Java to MariaDB and MySQL databases
======================================================= 이름 일치 함 : java ========================================================
java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11
subversion-javahl.noarch : JNI bindings to the Subversion libraries
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment 8
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment 8
icedtea-web-javadoc.noarch : API documentation for IcedTea-Web
java-11-openjdk-src.x86_64 : OpenJDK Source Bundle 11
java-11-openjdk-demo.x86_64 : OpenJDK Demos 11
java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11
java-11-openjdk-jmods.x86_64 : JMods for OpenJDK 11
java-1.8.0-openjdk-src.x86_64 : OpenJDK Source Bundle 8
java-1.8.0-openjdk-demo.x86_64 : OpenJDK Demos 8
java-11-openjdk-javadoc.x86_64 : OpenJDK 11 API documentation
postgresql-jdbc-javadoc.noarch : API docs for postgresql-jdbc
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment 8
java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11
java-1.8.0-openjdk-javadoc.noarch : OpenJDK 8 API documentation
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 8
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 8
java-11-openjdk-javadoc-zip.x86_64 : OpenJDK 11 API documentation compressed in single archive
java-1.8.0-openjdk-javadoc-zip.noarch : OpenJDK 8 API documentation compressed in single archive
java-1.8.0-openjdk-accessibility.x86_64 : OpenJDK 8 accessibility connector
======================================================= 요약 일치 함 : java ========================================================
ant.noarch : Java build tool
nodejs.x86_64 : JavaScript runtime
aopalliance.noarch : Java/J2EE AOP standards
flute.noarch : Java CSS parser using SAC
geronimo-annotation.noarch : Java EE: Annotation API v1.3
jboss-interceptors-1.2-api.noarch : Java EE Interceptors 1.2 API
gjs.i686 : Javascript Bindings for GNOME
gjs.x86_64 : Javascript Bindings for GNOME
guava20.noarch : Google Core Libraries for Java
slf4j.noarch : Simple Logging Facade for Java
mozjs52.x86_64 : SpiderMonkey JavaScript library
mozjs52.i686 : SpiderMonkey JavaScript library
mozjs52.x86_64 : SpiderMonkey JavaScript library
mozjs60.i686 : SpiderMonkey JavaScript library
mozjs60.x86_64 : SpiderMonkey JavaScript library
jdeparser.noarch : Source generator library for Java
webkit2gtk3-jsc.i686 : JavaScript engine from webkit2gtk3
webkit2gtk3-jsc.x86_64 : JavaScript engine from webkit2gtk3
jna.x86_64 : Pure Java access to native libraries
sac.noarch : Java standard interface for CSS parser
apache-commons-cli.noarch : Command Line Interface Library for Java
byteman.noarch : Java agent-based bytecode injection tool
nodejs-devel.x86_64 : JavaScript runtime - development headers
tagsoup.noarch : A SAX-compliant HTML parser written in Java
php-json.x86_64 : JavaScript Object Notation extension for PHP
json-glib.x86_64 : Library for JavaScript Object Notation format
jsoup.noarch : Java library for working with real-world HTML
json-glib.i686 : Library for JavaScript Object Notation format
json-glib.x86_64 : Library for JavaScript Object Notation format
tigervnc-server-applet.noarch : Java TigerVNC viewer applet for TigerVNC server
jboss-jaxrs-2.0-api.noarch : JAX-RS 2.0: The Java API for RESTful Web Services
jline.noarch : JLine is a Java library for handling console input
atinject.noarch : Dependency injection specification for Java (JSR-330)
maven.noarch : Java project management and project comprehension tool
perl-JSON.noarch : Parse and convert to JSON (JavaScript Object Notation)
webkit2gtk3-jsc-devel.i686 : Development files for JavaScript engine from webkit2gtk3
webkit2gtk3-jsc-devel.x86_64 : Development files for JavaScript engine from webkit2gtk3
apache-commons-lang3.noarch : Provides a host of helper utilities for the java.lang API
google-guice.noarch : Lightweight dependency injection framework for Java 5 and above
httpcomponents-core.noarch : Set of low level Java HTTP transport components for HTTP services
jansi.noarch : Jansi is a java library for generating and interpreting ANSI escape sequences
ongres-scram.noarch : Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation
icedtea-web.noarch : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation
[root@localhost bin]# yum search java11
마지막 메타 데이터 만료 확인 : 0:04:30 전에 2020년 03월 16일 (월) 오전 11시 50분 32초.
검색 결과가 없습니다.
- java 관련 패키지들이 보인다.
- 다시 조회를 해본다.
[root@localhost bin]# yum search java-11
마지막 메타 데이터 만료 확인 : 0:04:37 전에 2020년 03월 16일 (월) 오전 11시 50분 32초.
====================================================== 이름 일치 함 : java-11 ======================================================
java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11
java-11-openjdk-src.x86_64 : OpenJDK Source Bundle 11
java-11-openjdk-demo.x86_64 : OpenJDK Demos 11
java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11
java-11-openjdk-jmods.x86_64 : JMods for OpenJDK 11
java-11-openjdk-javadoc.x86_64 : OpenJDK 11 API documentation
java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11
java-11-openjdk-javadoc-zip.x86_64 : OpenJDK 11 API documentation compressed in single archive
[root@localhost bin]# yum search java-1.8
마지막 메타 데이터 만료 확인 : 0:08:48 전에 2020년 03월 16일 (월) 오전 11시 50분 32초.
===================================================== 이름 일치 함 : java-1.8 ======================================================
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment 8
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment 8
java-1.8.0-openjdk-src.x86_64 : OpenJDK Source Bundle 8
java-1.8.0-openjdk-demo.x86_64 : OpenJDK Demos 8
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment 8
java-1.8.0-openjdk-javadoc.noarch : OpenJDK 8 API documentation
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 8
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 8
java-1.8.0-openjdk-javadoc-zip.noarch : OpenJDK 8 API documentation compressed in single archive
java-1.8.0-openjdk-accessibility.x86_64 : OpenJDK 8 accessibility connector
- openjdk-1.8과 openjdk-11 이 설치 가능한 것 같다.
2. yum install java
- 원하는 버전을 설치한다. 혹은 java 라고만 입력하니 openjdk-1.8 이 설치가 되었다.
- yum install java,
yum install java-1.8,
yum install java-11
중에서 선택한다.
- 중간에 물어보면 y를 입력한다. 그것이 귀찮다면 yum install -y java 를 입력한다.
[root@localhost ~]# yum install java
CentOS-8 - AppStream 1.8 MB/s | 6.5 MB 00:03
CentOS-8 - Base 1.2 MB/s | 5.0 MB 00:04
CentOS-8 - Extras 626 B/s | 2.1 kB 00:03
종속성이 해결되었습니다.
====================================================================================================================================
꾸러미 아키텍처 버전 리포지토리 크기
====================================================================================================================================
Installing:
java-1.8.0-openjdk x86_64 1:1.8.0.242.b08-0.el8_1 AppStream 318 k
종속성 설치:
copy-jdk-configs noarch 3.7-1.el8 AppStream 27 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.242.b08-0.el8_1 AppStream 33 M
javapackages-filesystem noarch 5.3.0-1.module_el8.0.0+11+5b8c10bd AppStream 30 k
ttmkfdir x86_64 3.0.9-54.el8 AppStream 62 k
tzdata-java noarch 2019c-1.el8 AppStream 189 k
xorg-x11-fonts-Type1 noarch 7.5-19.el8 AppStream 522 k
lksctp-tools x86_64 1.0.18-3.el8 BaseOS 100 k
Enabling module streams:
javapackages-runtime 201801
거래 요약
====================================================================================================================================
설치 8 꾸러미
총 다운로드 크기 : 34 M
설치 크기 : 123 M
이게 괜찮습니까 [y / N] : y
패키지 다운로드중:
CentOS-8 - AppStream 194% [================================================================================(1/8): copy-jdk-configs-3.7-1.el8.noarch.rpm 26 kB/s | 27 kB 00:01
(2/8): javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch.rpm 867 kB/s | 30 kB 00:00
(3/8): java-1.8.0-openjdk-1.8.0.242.b08-0.el8_1.x86_64.rpm 286 kB/s | 318 kB 00:01
(4/8): ttmkfdir-3.0.9-54.el8.x86_64.rpm 985 kB/s | 62 kB 00:00
(5/8): tzdata-java-2019c-1.el8.noarch.rpm 2.6 MB/s | 189 kB 00:00
(6/8): lksctp-tools-1.0.18-3.el8.x86_64.rpm 1.2 MB/s | 100 kB 00:00
(7/8): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm 2.8 MB/s | 522 kB 00:00
(8/8): java-1.8.0-openjdk-headless-1.8.0.242.b08-0.el8_1.x86_64.rpm 7.8 MB/s | 33 MB 00:04
------------------------------------------------------------------------------------------------------------------------------------
합계 4.7 MB/s | 34 MB 00:07
경고: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/copy-jdk-configs-3.7-1.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00
GPG키 0x8483C65D를 불러옵니다:
사용자 : "CentOS (CentOS Official Signing Key) <security@centos.org>"
GPG 지문: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
출처 : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
이게 괜찮습니까 [y / N] : y
성공적으로 가져온 키
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
트랜잭션 테스트가 완료되었습니다.
거래 실행 중
스크립틀릿 실행: copy-jdk-configs-3.7-1.el8.noarch 1/1
스크립틀릿 실행: java-1.8.0-openjdk-headless-1:1.8.0.242.b08-0.el8_1.x86_64 1/1
준비 중입니다 : 1/1
Installing : lksctp-tools-1.0.18-3.el8.x86_64 1/8
스크립틀릿 실행: lksctp-tools-1.0.18-3.el8.x86_64 1/8
Installing : tzdata-java-2019c-1.el8.noarch 2/8
Installing : ttmkfdir-3.0.9-54.el8.x86_64 3/8
Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/8
스크립틀릿 실행: xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/8
Installing : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 5/8
Installing : copy-jdk-configs-3.7-1.el8.noarch 6/8
Installing : java-1.8.0-openjdk-headless-1:1.8.0.242.b08-0.el8_1.x86_64 7/8
스크립틀릿 실행: java-1.8.0-openjdk-headless-1:1.8.0.242.b08-0.el8_1.x86_64 7/8
Installing : java-1.8.0-openjdk-1:1.8.0.242.b08-0.el8_1.x86_64 8/8
스크립틀릿 실행: java-1.8.0-openjdk-1:1.8.0.242.b08-0.el8_1.x86_64 8/8
스크립틀릿 실행: copy-jdk-configs-3.7-1.el8.noarch 8/8
스크립틀릿 실행: java-1.8.0-openjdk-1:1.8.0.242.b08-0.el8_1.x86_64 8/8
확인 중 : copy-jdk-configs-3.7-1.el8.noarch 1/8
확인 중 : java-1.8.0-openjdk-1:1.8.0.242.b08-0.el8_1.x86_64 2/8
확인 중 : java-1.8.0-openjdk-headless-1:1.8.0.242.b08-0.el8_1.x86_64 3/8
확인 중 : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 4/8
확인 중 : ttmkfdir-3.0.9-54.el8.x86_64 5/8
확인 중 : tzdata-java-2019c-1.el8.noarch 6/8
확인 중 : xorg-x11-fonts-Type1-7.5-19.el8.noarch 7/8
확인 중 : lksctp-tools-1.0.18-3.el8.x86_64 8/8
설치됨:
java-1.8.0-openjdk-1:1.8.0.242.b08-0.el8_1.x86_64 copy-jdk-configs-3.7-1.el8.noarch
java-1.8.0-openjdk-headless-1:1.8.0.242.b08-0.el8_1.x86_64 javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch
ttmkfdir-3.0.9-54.el8.x86_64 tzdata-java-2019c-1.el8.noarch
xorg-x11-fonts-Type1-7.5-19.el8.noarch lksctp-tools-1.0.18-3.el8.x86_64
완료되었습니다!
[root@localhost ~]#
3. 설치 확인
- java -version
[root@localhost ~]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
[root@localhost ~]#
'SERVER???' 카테고리의 다른 글
리눅스에서 jdk 설치(오라클, tar.gz) (0) | 2020.03.16 |
---|---|
리눅스에서 jdk 설치(오라클, rpm) (0) | 2020.03.16 |
리눅스에서 톰캣 설치 (0) | 2020.03.16 |
libncurses.so.5: cannot open shared object file.... (0) | 2020.02.19 |
libnsl.so.1: cannot open shared object file.... (0) | 2020.02.19 |
리눅스에서 시간 동기화 (0) | 2020.01.08 |
jks 인증서 정보 확인 (0) | 2019.12.26 |
ssh 파일 전송 (0) | 2019.12.23 |