Where do I find the JDK install to uninstall? @terdon had explained using an
rpm type download so it would be easier to uninstall, but I cannot find it.
What's that packages name?
When you don't know the name of a specific RPM to uninstall you can search for it like so using the command
$ rpm -aq | grep -i jdk java-1.7.0-openjdk-devel-22.214.171.124-126.96.36.199.fc19.x86_64 jdk-1.7.0_45-fcs.x86_64 java-1.7.0-openjdk-188.8.131.52-184.108.40.206.fc19.x86_64
Based on the above output I have 2 versions of Java installed. The official Oracler version,
jdk-1.7.0_45 and the IceTea version aka. Open JDK,
To uninstall the official version of Java (JDK) you could use the following commands,
$ sudo yum remove jdk [sudo] password for saml: Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit Resolving Dependencies --> Running transaction check ---> Package jdk.x86_64 2000:1.7.0_45-fcs will be erased --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================== Package Arch Version Repository Size ===================================================================================================================== Removing: jdk x86_64 2000:1.7.0_45-fcs installed 193 M Transaction Summary ===================================================================================================================== Remove 1 Package Installed size: 193 M ...
$ sudo rpm -e jdk
I would recommend always trying to use
yum if you can, it does dependency checks that
rpm does not.