删除openjdk记录

1.su  password

2先查看 rpm -qa | grep java

[liujie@localhost zookeeper]$ rpm -qa | grep java
tzdata-java-2015e-1.el7.noarch
python-javapackages-3.4.1-6.el7_0.noarch
java-1.7.0-openjdk-headless-1.7.0.79-2.5.5.2.el7_1.x86_64
java-1.7.0-openjdk-1.7.0.79-2.5.5.2.el7_1.x86_64

javapackages-tools-3.4.1-6.el7_0.noarch


3.rpm -e --nodeps  java-1.7.0-openjdk-headless-1.7.0.79-2.5.5.2.el7_1.x86_64

你可能感兴趣的:(Linux)