Linux - CentOS5.5卸载自带的JDK

 

使用root用户登录.

运行.

 

#rpm -qa |grep gcj

 

显示:

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

接下来删除自带的JDK.

#yum -y remove java java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

 

显示如下:

Removed:
  java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115
  java-1.6.0-openjdk.i386 1:1.6.0.0-1.7.b09.el5

 

Dependency Removed:
  antlr.i386 0:2.7.6-4jpp.2
  bsf.i386 0:2.3.0-11jpp.1
  bsh.i386 0:1.3.0-9jpp.1
  gjdoc.i386 0:0.7.7-12.el5
  hsqldb.i386 1:1.8.0.9-1jpp.2
  lucene.i386 0:1.4.3-1jpp.16
  openoffice.org-calc.i386 1:3.1.1-19.5.el5
  openoffice.org-core.i386 1:3.1.1-19.5.el5
  openoffice.org-draw.i386 1:3.1.1-19.5.el5
  openoffice.org-graphicfilter.i386 1:3.1.1-19.5.el5
  openoffice.org-impress.i386 1:3.1.1-19.5.el5
  openoffice.org-math.i386 1:3.1.1-19.5.el5
  openoffice.org-writer.i386 1:3.1.1-19.5.el5
  openoffice.org-xsltfilter.i386 1:3.1.1-19.5.el5
  tomcat5-jsp-2.0-api.i386 0:5.5.23-0jpp.7.el5_3.2
  tomcat5-servlet-2.4-api.i386 0:5.5.23-0jpp.7.el5_3.2
  xalan-j2.i386 0:2.7.0-6jpp.1
  xerces-j2.i386 0:2.7.1-7jpp.2.el5_4.2
  xml-commons-apis.i386 0:1.3.02-0.b2.7jpp.10
  xml-commons-resolver.i386 0:1.1-1jpp.12

Complete!

----------------------------------------------------------------------------------

 

卸载完成..

 

你可能感兴趣的:(centos)