I have a Centos 6.2 machine. It currently has JDK 1.6.0_26 installed. I would like to update that to 1.6.0_38, the current release version.
I saw a comment somewhere about sudo apt-get
; apt-get
does not seem to be a command that this box knows. So I skipped that one.
I saw some RPM stuff on the box, and RPM was a recognized command, so I downloaded the JDK RPM.bin file from Oracle, transferred it to the Linux machine, chmod'd it, and ran the bin file - this is apparently supposed to extract and install the RPM. It hits an error doing this (complaining about ./install.sfx.5513: /lib/ld-linux.so.2: bad ELF interpreter
as well as some issues about JavaDB which I don't know that that's important) and nothing appears to have changed. I tried to extract the RPM file (using the -x switch) and still nothing appears to have changed - if it extracted it I have no idea where it went, or what I would type in a relevant rpm command to get it to do something. Searching on that error led me to some suggestion that I needed to install glibc - but also started talking about Yum.
I also have Yum - this looks like it might be an even more helpful tool. I can yum list jdk
and it shows me that there is a package installed from yum ("jdk.x86_64") but yum update
does nothing. I tried yum install jdk
on a whim and it said "package jdk-1.6.0_26-fcs.x86_64 already installed and latest version" which is strange, since 26 is not the latest version.
Any suggestions on what I should try next?