银河麒麟V10卸载Openjdk


银河麒麟V10卸载Openjdk

1.查看系统的java版本:

#java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

2.查看系统的JDK安装包:

#rpm -qa|grep jdk
java-1.8.0-openjdk-1.8.0.242.b08-1.h5.ky10.aarch64
java-1.8.0-openjdk-headless-1.8.0.242.b08-1.h5.ky10.aarch64
copy-jdk-configs-3.7-3.ky10.noarch
java-11-openjdk-11.0.6.10-4.ky10.ky10.aarch64
java-11-openjdk-headless-11.0.6.10-4.ky10.ky10.aarch64

3.卸载JDK安装包:

rpm -e --nodeps java-1.8.0-openjdk
rpm -e --nodeps java-1.8.0-openjdk-headless
rpm -e --nodeps java-11-openjdk
rpm -e --nodeps java-11-openjdk-headless
rpm -e --nodeps copy-jdk-configs

4.查看java安装包:

# rpm -qa|grep java
javapackages-filesystem-5.3.0-2.ky10.noarch
javapackages-tools-5.3.0-2.ky10.noarch
tzdata-java-2019c-1.p01.ky10.noarch

5.卸载java安装包:

rpm -e --nodeps javapackages-filesystem
rpm -e --nodeps javapackages-tools
rpm -e --nodeps tzdata-java

6.确认卸载情况

java -version