LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-24-2007, 01:06 AM   #1
valdezr1
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Uninstalling jdk6


I recently installed accidentally jdk 6 in my desktop of my fedora core 6 system.
How can I uninstall it?
I downloaded the jdk bin file from sun site, not the rpm.bin file
that I heard is the one that works fine with fedora.

I'll appreciate your valuable help.
 
Old 03-24-2007, 04:22 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
WRONG:

Follow chump's inatall instructions in the link below, go through the entire Java Plugin section, you have to install compatible libraries etc.

It shows you how to install the "bin" file properly. I copied and pasted all his command (after setting up sudo), and it was a breeze to set up java 1.6

http://www.mjmwired.net/resources/mjm-fedora-fc6.html
 
Old 03-24-2007, 04:25 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
OH!
I just noticed, jdk, not jre....Oh well, it might still be an asset.
 
Old 03-24-2007, 05:08 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
The bin file should work just as well as the rpm file; the only difference is that the bin file allows you to install wherever you like.

If you do want to remove it, I suggest having a look at Add/Remove software; if it's on the list, you simply unselect and press "apply" (or whatever it is called).

If it's not on the list, the directory can be simply deleted with:

rm -rf /path/to/jdkXXX
 
Old 03-24-2007, 07:45 PM   #5
valdezr1
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Jay93:
It is not like windows that besides the directory where were installed, other files are installed in other locations? Is it right to just delete the directory?

Is there a way to list the installed programs in the command line and then select one to be unistalled with some command?
 
Old 03-24-2007, 08:08 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
In KDE

If you go to main menu/system/Add_and_remove_software, wait for it to finish the scan, then hit the "List" tab to get a list of all packages in alphabetical order, the ones with a check mark are installed. To remove, remove the check mark and hit "Apply". In Gnome, there should also be a GUI package manager.
Via command line, use command:

rpm -q java

To query the system to see what all java packages are installed.

Then to remove with rpm:

rpm -e packagename

Using the full name of the package down to the .rpm extension.

To remove with yum:

yum remove java

It will ask for confirmation as to which/all java packages to remove, if you only want to remove a certain java and not all with yum, put the full name of the package in the command.

Last edited by Junior Hacker; 03-24-2007 at 08:15 PM.
 
Old 03-24-2007, 10:06 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
valdezr1,

you're right, you should always be extremely careful deleting directories. However, when you need to remove certain packages that were NOT installed using the system package manager, you can simply delete them manually because the system doesn't know about them anyway.

That being said, such situations are exceptional and you should always use the system package manager as much as possible. Especially since things can get rather tricky; if I remember correctly, you run java bin manually but it ends up producing an rpm - and rpms are installed by the system package manager. So java may well be present on the system managed list of installed packages after all. That's why I recommended checking the list first and deleting manually only if it's not there.

Btw, there is also an official java specific uninstall procedure; it is documented on the Sun site.

Last edited by jay73; 03-24-2007 at 10:07 PM.
 
  


Reply



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
uninstalling gibney Linux - Newbie 2 03-08-2007 05:06 PM
Installing JDK6? GSMD Debian 2 01-11-2007 11:01 AM
uninstalling dzt Linux - Software 2 10-20-2003 08:03 PM
uninstalling help! huffboy Linux - Newbie 1 10-05-2003 10:47 PM
Uninstalling EchO Linux - Newbie 2 01-16-2002 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration