[[email protected] hadoop]$ rpm -qa | grep java
java-1.7.0-openjdk-1.7.0.191-2.6.15.5.el7.x86_64
python-javapackages-3.4.1-11.el7.noarch
java-1.7.0-openjdk-headless-1.7.0.191-2.6.15.5.el7.x86_64
java-1.8.0-openjdk-headless-1.8.0.181-7.b13.el7.x86_64
tzdata-java-2018e-3.el7.noarch
javapackages-tools-3.4.1-11.el7.noarch
java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64
[[email protected] ~]# rpm -e --nodeps python-javapackages-3.4.1-11.el7.noarch
[[email protected] ~]# rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.191-2.6.15.5.el7.x86_64
[[email protected] ~]# rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.181-7.b13.el7.x86_64
[[email protected] ~]# rpm -e --nodeps tzdata-java-2018e-3.el7.noarch
[[email protected] ~]# rpm -e --nodeps javapackages-tools-3.4.1-11.el7.noarch
[[email protected] ~]# rpm -e --nodeps java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64
原文地址:https://www.cnblogs.com/aprilwang/p/10956892.html