本文首发自个人博客:https://blog.smile13.com
1.搜索可用的openjdk1.8包
[root@eric01 ~]# yum search java-1.8.0|grep openjdk
Repository epel is listed more than once in the configuration Repository epel-debuginfo is listed more than once in the configuration Repository epel-source is listed more than once in the configuration Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast java-1.8.0-openjdk.i686 : OpenJDK Runtime Environment java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment java-1.8.0-openjdk-accessibility.i686 : OpenJDK accessibility connector java-1.8.0-openjdk-accessibility.x86_64