LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   unable to uninstall java (https://www.linuxquestions.org/questions/linux-software-2/unable-to-uninstall-java-565578/)

rohinik23 06-30-2007 06:07 AM

unable to uninstall java
 
Dear all,

I installed jdk using the jdk-6u1-linux-i586-rpm.bin binary by using sh jdk-6u1-linux-i586-rpm.bin. It installed java in /usr/java. It also created a jdk-6u1-linux-i586.rpm.
Remembering that JRE should be installed first i removed the existing java installation by rm -rf /usr/java, which should not be done.

Now when i install java it gives the following message:

Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u1-linux-i586.rpm
Preparing... ########################################### [100%]
package jdk-1.6.0_01-fcs is already installed

Done.


Iam unable to find the package using the command :
locate jdk-1.6.0_01-fcs.

Pls help me in uninstalling the rpm.bin files.

Any help is greatly appreciated.

thanks....

reddazz 06-30-2007 07:23 AM

To find if an rpm is installed, you do
Code:

$rpm -qa | grep -i nameOfPackage
e.g.
Code:

$rpm -qa | grep -i jdk
If there are no results, then its not installed but if you get output like
Code:

jdk-1.6.0_01-fcs
then uninstall the package by doing
Code:

#rpm -e jdk-1.6.0_01-fcs

rohinik23 07-01-2007 09:12 AM

thank you reddazz.........
i could solve the problem and installed jre and jdk6.
thanks a lot.

reddazz 07-01-2007 10:37 AM

By the way, welcome to LQ. ;)


All times are GMT -5. The time now is 11:37 PM.