概述
先查看有哪些可安装的
yum list java*
[root@VM_16_35_centos ~]# yum list java*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Available Packages
java-1.6.0-openjdk.x86_64 1:1.6.0.41-1.13.13.1.el7_3 os
java-1.6.0-openjdk-demo.x86_64 1:1.6.0.41-1.13.13.1.el7_3 os
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 os
java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.41-1.13.13.1.el7_3 os
java-1.6.0-openjdk-src.x86_64 1:1.6.0.41-1.13.13.1.el7_3 os
java-1.7.0-openjdk.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-accessibility.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-demo.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-headless.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-javadoc.noarch 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.7.0-openjdk-src.x86_64 1:1.7.0.191-2.6.15.4.el7_5 updates
java-1.8.0-openjdk.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-accessibility.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-accessibility-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-accessibility-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-demo.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-demo.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-demo-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-demo-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-devel.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-devel-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-devel-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-headless.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-headless-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-headless-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-javadoc-debug.noarch 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-javadoc-zip-debug.noarch 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-src.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-src.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-src-debug.i686 1:1.8.0.181-3.b13.el7_5 updates
java-1.8.0-openjdk-src-debug.x86_64 1:1.8.0.181-3.b13.el7_5 updates
java-atk-wrapper.i686 0.30.4-5.el7 os
java-atk-wrapper.x86_64 0.30.4-5.el7 os
java-dirq.noarch 1.8-1.el7 epel
java-dirq-javadoc.noarch 1.8-1.el7 epel
java-oauth.noarch 20100601-13.el7 epel
java-oauth-javadoc.noarch 20100601-13.el7 epel
java_cup.noarch 1:0.11a-16.el7 os
java_cup-javadoc.noarch 1:0.11a-16.el7 os
java_cup-manual.noarch 1:0.11a-16.el7 os
javacc.noarch 5.0-10.el7 os
javacc-demo.noarch 5.0-10.el7 os
javacc-javadoc.noarch 5.0-10.el7 os
javacc-manual.noarch 5.0-10.el7 os
javacc-maven-plugin.noarch 2.6-17.el7 os
javacc-maven-plugin-javadoc.noarch 2.6-17.el7 os
javamail.noarch 1.4.6-8.el7 os
javamail-javadoc.noarch 1.4.6-8.el7 os
javapackages-tools.noarch 3.4.1-11.el7 os
javaparser.noarch 1.0.11-3.el7 epel
javaparser-javadoc.noarch 1.0.11-3.el7 epel
javassist.noarch 3.16.1-10.el7 os
javassist-javadoc.noarch 3.16.1-10.el7 os
javastroke.x86_64 0.5.1-33.el7 epel
javawriter.noarch 2.5.1-4.el7 epel
javawriter-javadoc.noarch 2.5.1-4.el7 epel
选择要安装的包
yum install -y java-1.8.0-openjdk-devel.x86_64
等待安装完成执行java -version
安装成功
最后
以上就是奋斗芝麻为你收集整理的CentOs7.5yum安装JDK1.8详细过程的全部内容,希望文章能够帮你解决CentOs7.5yum安装JDK1.8详细过程所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复