CentOS7 java 설치

그냥 yum으로 설치하면 된다.

yum install java


[root@localhost ~]# yum install java
Dependencies Resolved
==========================================================
Package          Arch           Version              Repository         Size
==========================================================
Installing:
java-1.8.0-openjdk         x86_64  1:1.8.0.181-3.b13.el7_5    updates   250 k
Installing for dependencies:
copy-jdk-configs             noarch  3.3-10.el7_5               updates   21 k
java-1.8.0-openjdk-headless  x86_64  1:1.8.0.181-3.b13.el7_5    updates   32 M
javapackages-tools           noarch  3.4.1-11.el7               base      73 k
libXfont                     x86_64  1.5.2-1.el7                base     152 k
libfontenc                   x86_64  1.1.3-3.el7                base      31 k
lksctp-tools                 x86_64  1.0.17-2.el7               base      88 k
python-javapackages          noarch  3.4.1-11.el7               base      31 k
python-lxml                  x86_64  3.2.1-4.el7                base     758 k
ttmkfdir                     x86_64  3.0.9-42.el7               base      48 k
tzdata-java                  noarch  2018e-3.el7                updates  185 k
xorg-x11-font-utils          x86_64  1:7.5-20.el7               base      87 k
xorg-x11-fonts-Type1         noarch  7.5-9.el7                  base     521 k
Transaction Summary
==========================================================
Install  1 Package (+12 Dependent packages)
Total download size: 34 M
Installed size: 109 M
Is this ok [y/d/N]: y
Downloading packages:
(1/13): copy-jdk-configs-3.3-10.el7_5.noarch.rpm           |  21 kB   00:00
(2/13): javapackages-tools-3.4.1-11.el7.noarch.rpm         |  73 kB   00:00
(3/13): lksctp-tools-1.0.17-2.el7.x86_64.rpm               |  88 kB   00:00
(4/13): python-javapackages-3.4.1-11.el7.noarch.rpm        |  31 kB   00:00
(5/13): python-lxml-3.2.1-4.el7.x86_64.rpm                 | 758 kB   00:00
(6/13): ttmkfdir-3.0.9-42.el7.x86_64.rpm                   |  48 kB   00:00
(7/13): tzdata-java-2018e-3.el7.noarch.rpm                 | 185 kB   00:00
(8/13): xorg-x11-font-utils-7.5-20.el7.x86_64.rpm          |  87 kB   00:00
(9/13): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm          | 521 kB   00:00
(10/13): libXfont-1.5.2-1.el7.x86_64.rpm                   | 152 kB   00:03
(11/13): java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64.r | 250 kB   00:03
(12/13): libfontenc-1.1.3-3.el7.x86_64.rpm                 |  31 kB   00:06
(13/13): java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5 |  32 MB   00:08
--------------------------------------------------------------------------------
Total                                              4.1 MB/s |  34 MB  00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libfontenc-1.1.3-3.el7.x86_64                               1/13
Installing : libXfont-1.5.2-1.el7.x86_64                                 2/13
Installing : 1:xorg-x11-font-utils-7.5-20.el7.x86_64                     3/13
Installing : ttmkfdir-3.0.9-42.el7.x86_64                                4/13
Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                       5/13
Installing : lksctp-tools-1.0.17-2.el7.x86_64                            6/13
Installing : tzdata-java-2018e-3.el7.noarch                              7/13
Installing : python-lxml-3.2.1-4.el7.x86_64                              8/13
Installing : python-javapackages-3.4.1-11.el7.noarch                     9/13
Installing : javapackages-tools-3.4.1-11.el7.noarch                     10/13
Installing : copy-jdk-configs-3.3-10.el7_5.noarch                       11/13
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5.x86_   12/13
Installing : 1:java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64          13/13
Verifying  : 1:java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64           1/13
Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5.x86_    2/13
Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                       3/13
Verifying  : copy-jdk-configs-3.3-10.el7_5.noarch                        4/13
Verifying  : python-javapackages-3.4.1-11.el7.noarch                     5/13
Verifying  : python-lxml-3.2.1-4.el7.x86_64                              6/13
Verifying  : libXfont-1.5.2-1.el7.x86_64                                 7/13
Verifying  : tzdata-java-2018e-3.el7.noarch                              8/13
Verifying  : javapackages-tools-3.4.1-11.el7.noarch                      9/13
Verifying  : libfontenc-1.1.3-3.el7.x86_64                              10/13
Verifying  : lksctp-tools-1.0.17-2.el7.x86_64                           11/13
Verifying  : ttmkfdir-3.0.9-42.el7.x86_64                               12/13
Verifying  : 1:xorg-x11-font-utils-7.5-20.el7.x86_64                    13/13
Installed:
java-1.8.0-openjdk.x86_64 1:1.8.0.181-3.b13.el7_5
Dependency Installed:
copy-jdk-configs.noarch 0:3.3-10.el7_5
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.181-3.b13.el7_5
javapackages-tools.noarch 0:3.4.1-11.el7
libXfont.x86_64 0:1.5.2-1.el7
libfontenc.x86_64 0:1.1.3-3.el7
lksctp-tools.x86_64 0:1.0.17-2.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:2018e-3.el7
xorg-x11-font-utils.x86_64 1:7.5-20.el7
xorg-x11-fonts-Type1.noarch 0:7.5-9.el7
Complete!