FedoraThis 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.
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.
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.
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
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:
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.