1

Some time ago I have installed Java Development Kit on Ubutu. I typed "sudo apt-get java" or something like that. After that got "java" and "javac" commands in my command line. Now I would like to uninstall this JDK. I tried to type "sudo apt-get remove java". And as the result I get "E: Couldn't find package java".

Could anybody, pleas, help me with that?

2 Answers 2

3

Try in a console "aptitude search jdk" and watch at the results.
You can spot a character on the far left of each line. If that character is an 'i' it means that the package is currenty installed on the system. Probably it will be something like "sun-java6-jdk" or "openjdk-6-jdk".
At that point you can do "sudo aptitude purge $1" where $1 is the name of the package you have found from the previous result list.

1
  • 1
    Be careful to only remove the JDK not all "java" as the JRE is required by many things.
    – Chris Nava
    Feb 18, 2010 at 23:01
1

Have you tried using Synaptic Package Manager to locate the Java 'stuff' you want to remove?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.