Linux, How do I uninstall Java

How do I uninstall java on RHEL 6.4
Los Angeles1Asked:
Who is Participating?
 
xtermConnect With a Mentor Commented:
Here's how you find what you have, and then erase it:

[root@host ~]# rpm -qa | grep ^java
java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64

[root@host ~]# rpm -e java-1.6.0-openjdk
[root@host ~]#

Open in new window

0
 
MazdajaiCommented:
Did you install it with yum? If so, it is yum remove java-<version>.

If you are not sure the version you can do yum remove java*.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.