1. log on to centos with the root account
2. view the JDK INSTALLED IN THE SYSTEM
[Root @ localhost ~] # Rpm-Qa | grep JDK
Jdk-1.6.0_38-fcs3, uninstall JDK [root @ localhost ~] # Rpm-e -- nodeps jdk-1.6.0_22-fcs Parameter Selection: -E, -- Erase = <package> + erase (uninstall) package
-- Nodeps do not verify package Dependencies After the JDK is uninstalled, the following error occurs: Error: package jdk-1.6.0_38-fcs is not installed4, uninstall and Java-related files a, view the Java-related installation content [root @ localhost ~] # Rpm-Qa | grep Java sun-javadb-common-10.6.2-1.1
Sun-javadb-docs-10.6.2-1.1
Sun-javadb-core-10.6.2-1.1
Sun-javadb-demo-10.6.2-1.1
Sun-javadb-javadoc-10.6.2-1.1
Sun-javadb-client-10.6.2-1.1
B. unmount [root @ localhost Java2] # rpm-e -- nodeps sun-javadb-common-10.6.2-1.1
If multiple files are downloaded at a time, separate them with spaces between each unload package [root @ localhost Java2] # rpm-e -- nodeps sun-javadb-common-10.6.2-1.1 sun-javadb-docs-10.6.2-1.1 sun-javadb-core-10.6.2-1.1... Article Reference: http://sunqiusong.email.blog.163.com/blog/static/8838328201010592015500/