Home > Operation and Maintenance > CentOS > How to uninstall jdk on centos

How to uninstall jdk on centos

王林
Release: 2020-03-17 13:41:46
Original
7042 people have browsed it

How to uninstall jdk on centos

Centos7 usually comes with its own openjdk. We usually use Oracle's jdk, so we need to uninstall it.

Step 1: Check whether the system has installed jdk

#rpm -qa|grep java
Copy after login

or

#rpm -qa|grep jdk
Copy after login

or (recommended tutorial: centos usage tutorial)

#rpm -qa|grep gcj
Copy after login

How to uninstall jdk on centos

Step 2: Uninstall the installed jdk

#rpm -e --nodeps java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64
#rpm -e --nodeps java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64
#rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.131-11.b12.el7.x86_64
#rpm -e --nodeps java-1.7.0-openjdk-headless-1.8.0.131-11.b12.el7.x86_64
Copy after login

How to uninstall jdk on centos

Step 3: Verify that there is still jdk

#rpm -qa|grep java
#java -version
Copy after login

There is no content to prove that it has been uninstalled cleanly.

How to uninstall jdk on centos

Related video tutorial sharing: linux video tutorial

The above is the detailed content of How to uninstall jdk on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template