簡體   English   中英

在 Redhat 7.6 中更新 OpenJDK - 問題

[英]Updating OpenJDK in Redhat 7.6 - issue

我需要在 Redhat 7.6 上更新我的 OpenJDK 版本

我的機器有 OpenJDK 版本“1.8.0_181”,我需要把它帶到“1.8.0_201”

我下載了java-1.8.0-openjdk-1.8.0.201.b09-2.el6_10.src.rpm,復制到我的/tmp目錄下

然后我執行了這個命令:

rpm -i java-1.8.0-openjdk-1.8.0.201.b09-2.el6_10.src.rpm

然后我收到一條消息

warning : java-1.8.0-openjdk-1.8.0.201.b09-2.el6_10.src.rpm: Header V3 RSA/SHA1 Signature, key IS 
c105b9de: NOKEY
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root
warning : user mockbuild does not exist - using root
warning : group mockbuild does not exist - using root

然后我輸入:

java -verison

並得到相同的原廠java版本。 出了點問題。

有人能告訴我如何確保這個新版本的 java 正在運行嗎?

謝謝。

您不只是安裝 src rpm package。

第 1 步:構建它。

rpmbuild --rebuild java-1.8.0-openjdk-1.8.0.201.b09-2.el6_10.src.rpm

第 2 步:安裝生成的二進制 rpm。 文件名可能略有不同。

rpm -i rpmbuild/RPMS/x86_64/java-1.8.0-openjdk-1.8.0.201.b09-2.el6_10.x86_64.rpm

或者,下載預構建的二進制安裝。 利比里亞(例如)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM