Installation of JDK is not installed, as follows:
[Root@localhost local]# RPM-IVH jdk-6u41-linux-amd64.rpm preparing ... ################################### ######## [100%]
Package jdk-2000:1.6.0_41-fcs.x86_64 is already installed
The reason is that the JDK installed in Linux, the new JDK is not installed, so you can only delete the original installed JDK
Workaround:
I used yum to install the JDK, now I want to uninstall with Yum
1, first implementation:
[Root@localhost local]# Yum list java*
2, view the installed JDK, and then perform the uninstall [root@localhost local]# yum Remove java-1.6.0-openjdk.x86_64
3, and then view the installed JDK RPM:
[Root@localhost local]# Rpm-qa|grep JDK
Java-1.6.0-openjdk-1.6.0.0-1.54.1.11.6.el6_3.x86_64
Jdk-1.6.0_41-fcs.x86_64
4, Delete:
[Root@localhost local]# rpm-e java-1.6.0-openjdk-1.6.0.0-1.54.1.11.6.el6_3.x86_64
[root@localhost local]# rpm-e jdk-1.6.0_41-fcs.x86_64
5, reinstall
[root@localhost local]# RPM-IVH-Jdk-6u41-linux -amd64.rpm
6, after installation complete JDK location
[root@localhost local]#/usr/java/jdk1.6.0_41/