[root@livedvd ~]# java -version
java version "1.7.0_131"
OpenJDK Runtime Environment (rhel-2.6.9.0.el6_8-x86_64 u131-b00)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)
[root@livedvd ~]# yum list installed |grep java
java-1.5.0-gcj.x86_64 1.5.0.0-29.1.el6 @base/$releasever
java-1.6.0-openjdk.x86_64 1:1.6.0.41-1.13.13.1.el6_8
java-1.7.0-openjdk.x86_64 1:1.7.0.131-2.6.9.0.el6_8 @base/$releasever
java_cup.x86_64 1:0.10k-5.el6 @base/$releasever
tzdata-java.noarch 2016j-1.el6 @base/$releasever
[root@livedvd ~]# rpm -e --nodeps java-1.5.0-gcj.x86_64
[root@livedvd ~]# rpm -e --nodeps java-1.6.0-openjdk.x86_64
[root@livedvd ~]# rpm -e --nodeps java-1.7.0-openjdk.x86_64
[root@livedvd ~]# rpm -e --nodeps java_cup.x86_64
[root@livedvd ~]# yum list installed |grep java
tzdata-java.noarch 2016j-1.el6 @base/$releasever
[root@livedvd ~]# rpm -e --nodeps tzdata-java.noarch
[root@livedvd ~]# yum list installed |grep java
[root@livedvd ~]# java -version
-bash: /usr/bin/java: No such file or directory
Linux知识05:centos6.9卸载自带的openjdk
于 2018-10-24 19:17:58 首次发布