Yum No Package可用Java JDK

时间:2014-10-30 12:51:50

标签: java linux centos yum centos7

我有一个旧的链接rmp.bin文件到JDK的版本我认为不再存在于任何repro中,所以我将它下载到我的盒子上并试图安装它但我一直收到下面的错误。我如何确定问题所在?我假设因为我有实际的.bin文件,yum会拥有它需要的一切吗?

sudo yum install jdk-6u45-linux-x64-rpm.bin 
Loaded plugins: fastestmirror
base                                                                                                                                               | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                                                               |  14 kB  00:00:00     
epel                                                                                                                                               | 4.4 kB  00:00:00     
extras                                                                                                                                             | 3.4 kB  00:00:00     
updates                                                                                                                                            | 3.4 kB  00:00:00     
(1/3): extras/7/x86_64/primary_db                                                                                                                  |  33 kB  00:00:00     
(2/3): updates/7/x86_64/primary_db                                                                                                                 | 4.2 MB  00:00:00     
(3/3): epel/x86_64/primary_db                                                                                                                      | 3.4 MB  00:00:01     
(1/2): epel/x86_64/updateinfo                                                                                                                      | 105 kB  00:00:00     
(2/2): epel/x86_64/pkgtags                                                                                                                         | 1.3 MB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirror.fdcservers.net
 * epel: mirror.nexcess.net
 * extras: mirror.fdcservers.net
 * updates: mirror.fdcservers.net
No package jdk-6u45-linux-x64-rpm.bin available.
Error: Nothing to do

1 个答案:

答案 0 :(得分:0)

您需要先执行二进制包;在接受许可证后,它将自解压为rpm文件,而该文件又可以与yum一起安装。

chmod 744 jdk-6u45-linux-x64-rpm.bin
./jdk-6u45-linux-x64-rpm.bin
(read and accept the license)
yum localinstall <extracted rpms>