1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS 7にOpenJDK 8(1.8)をインストール(OS標準)

Last updated at Posted at 2019-10-03

はじめに

CentOS7にOpenJDK8を標準インストール
親記事:OpenJDKの各種インストール方法とEOLまとめ

サポート

本手法で導入した場合、CentOSはRHELのクローンなのでOpenJDK ライフサイクルおよびサポートポリシー - Red Hat Customer Portalより、2023-06 2026-05がEOLになると思われる。
ただしOSのEOLが2024-06-30のため、実際には2024-06-30がEOLになると思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

インストール

# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

# yum install -y java-1.8.0-openjdk which
... 略

各種確認

# which java
/usr/bin/java

# java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

# yum info java-1.8.0-openjdk
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * extras: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
Installed Packages
Name        : java-1.8.0-openjdk
Arch        : x86_64
Epoch       : 1
Version     : 1.8.0.222.b10
Release     : 1.el7_7
Size        : 642 k
Repo        : installed
From repo   : updates
Summary     : OpenJDK Runtime Environment 8
URL         : http://openjdk.java.net/
License     : ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with
            : exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
Description : The OpenJDK runtime environment.

Available Packages
Name        : java-1.8.0-openjdk
Arch        : i686
Epoch       : 1
Version     : 1.8.0.222.b10
Release     : 1.el7_7
Size        : 287 k
Repo        : updates/7/x86_64
Summary     : OpenJDK Runtime Environment 8
URL         : http://openjdk.java.net/
License     : ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with
            : exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
Description : The OpenJDK runtime environment.
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?