Friday, 15 February 2013

rhel - Red Hat Linux Enterprise 5.7 remove Java -



rhel - Red Hat Linux Enterprise 5.7 remove Java -

i need uninstall java jdk1.6.0.27 rhel 5.7 , install version jre-7u40-linux-x64.rpm. firs thing did find out current java version installed using java -version command , output "java version "1.6.0_27"". after tried check previews version of java command:

rpm -qi jdk

the output "package jdk not installed" after installing bundle jre-7u40-linux-x64.rpm in /usr/java directory there 2 java packages. output of ls command on /usr/java is: default jdk1.6.0_27 jre1.7.0_40 jre-7u40-linux-x64.rpm latest.

when run command "alternatives --config java" output is:

*+ 1 /usr/java/latest/bin/java

i new rhel , need help understand situation.

to conclude need help remove previews jdk1.6.0.27 , install jre1.7.0_40.

thank in advance help! best regards, claudio

first, find out real java executable. start with

which java

this going give response such as:

/usr/bin/java

next, do

ls -l /usr/bin/java

(or whatever returned).

it write like:

/usr/bin/java -> /etc/alternatives/java

do same whatever pointed arrow, until finally, when ls -l on it, there no arrow.

then, particular file, find out rpm provides using

rpm -q -f <full path of file found>

it should tell bundle belongs to, , can uninstall that.

however, if rpm command returns the file ... not owned by..., java has not been installed using rpm. may have been installed manually in past. makes uninstalling lot more problematic.

java rhel

No comments:

Post a Comment