Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-24-2007, 02:06 AM
|
#1
|
LQ Newbie
Registered: Feb 2007
Posts: 5
Rep:
|
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.
|
|
|
03-24-2007, 05:22 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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
|
|
|
03-24-2007, 05:25 AM
|
#3
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
OH!
I just noticed, jdk, not jre....Oh well, it might still be an asset.
|
|
|
03-24-2007, 06:08 PM
|
#4
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
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
|
|
|
03-24-2007, 08:45 PM
|
#5
|
LQ Newbie
Registered: Feb 2007
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
03-24-2007, 09:08 PM
|
#6
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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 09:15 PM.
|
|
|
03-24-2007, 11:06 PM
|
#7
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
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 11:07 PM.
|
|
|
All times are GMT -5. The time now is 02:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|