我正在尝试按照https://openjdk.java.net/install/使用 yum 在我的机器上安装 openJDK 8 。
但是我在 yum 存储库中看不到打开的 openJDK 8。
[root@test ~]# yum search jdk
Loaded plugins: downloadonly, product-id, refresh-packagekit, security,
: subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
=============================== N/S Matched: jdk ===============================
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser
: plug-in and Web Start implementation
ldapjdk.x86_64 : The Mozilla LDAP Java SDK
yum.conf 文件:
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools