LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2013, 09:08 AM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 555

Rep: Reputation: Disabled
how to completely remove OpenJDK?


I installed openjdk today on Debian 7 and I now want to remove it so I did
Code:
sudo apt-get remove openjdk-7-jre
and it said it was removed however when I do
Code:
dpkg --list | grep -i jdk
I get this in the output:

Code:
ii  icedtea-6-jre-cacao:amd64             6b27-1.12.5-1                      amd64        Alternative JVM for OpenJDK, using Cacao
ii  icedtea-6-jre-jamvm:amd64             6b27-1.12.5-1                      amd64        Alternative JVM for OpenJDK, using JamVM
ii  icedtea-7-jre-cacao:amd64             7u3-2.1.7-1                        amd64        Alternative JVM for OpenJDK, using Cacao
ii  icedtea-7-jre-jamvm:amd64             7u3-2.1.7-1                        amd64        Alternative JVM for OpenJDK, using JamVM
ii  openjdk-6-jre:amd64                   6b27-1.12.5-1                      amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-6-jre-headless:amd64          6b27-1.12.5-1                      amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib                     6b27-1.12.5-1                      all          OpenJDK Java runtime (architecture independent libraries)
ii  openjdk-7-jre-headless:amd64          7u3-2.1.7-1                        amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-7-jre-lib                     7u3-2.1.7-1                        all          OpenJDK Java runtime (architecture independent libraries)
 
Old 06-16-2013, 03:36 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,544

Rep: Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428
Some help on this page maybe.

https://www.linuxquestions.org/quest...ackage-237772/


May have to do some more drastic steps also. Like stopping any reference to startup services or use force option. In old times you had to manually find out what all was installed and remove one at a time.

Last edited by jefro; 06-16-2013 at 03:37 PM.
 
Old 06-16-2013, 09:36 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 555

Original Poster
Rep: Reputation: Disabled
If I just do the apt-get remove openjdk-7-jre, will that be enough to go and install Oracle Java 7 and have it as default? Also a really weird thing, I still have OpenJDK 7 installed however when I type Java - version I get 1.6 rather than 1.7 so do I have OpenJDK 6?
 
Old 06-19-2013, 08:18 PM   #4
sum1nil
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
Wink java

Try 'which java' to see the path. If it is still an openjdk path then try 'apt-get purge openjdkXXX'.

After installing Oracle's JDK make an environmental variable JDK_HOME in .bashhrc or .profile pointing to the Oracle install. Add $JDK_HOME/jre/bin:$JDK_HOME/bin to the front of your PATH.
Good luck.
 
  


Reply

Tags
openjdk


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove a service completely ? gardenair Linux - Newbie 5 05-18-2010 03:54 AM
Remove Exim4 Completely? carlosinfl Debian 15 06-24-2008 09:13 PM
remove directory completely ramesh_manu Linux - Newbie 3 03-05-2007 11:27 AM
completely remove a program edigital Linux - Software 3 02-21-2004 02:43 PM
Remove fetchmailconf completely Buttercups Linux - Software 0 01-28-2003 11:39 PM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration