ITPub博客

首页 > Linux操作系统 > Linux操作系统 > redhat5 rpm -e --nodeps --allmatches 卸载java jdk示例

redhat5 rpm -e --nodeps --allmatches 卸载java jdk示例

原创 Linux操作系统 作者:wisdomone1 时间:2013-05-23 19:36:06 0 删除 编辑

[root@rhel5 Server]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@rhel5 Server]# rpm -qa|grep gcj
libgcj-4.1.2-46.el5
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
libgcj-4.1.2-46.el5
[root@rhel5 Server]# rpm -e -nodeps libgcj-4.1.2-46.el5
-nodeps: unknown option
[root@rhel5 Server]# rpm -e --nodeps libgcj-4.1.2-46.el5
error: "libgcj-4.1.2-46.el5" specifies multiple packages
[root@rhel5 Server]# rpm -e --nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
[root@rhel5 Server]# rpm -e --nodeps libgcj-4.1.2-46.el5
error: "libgcj-4.1.2-46.el5" specifies multiple packages
[root@rhel5 Server]# rpm -e --allmatches --nodeps libgcj-4.1.2-46.el5
warning: /usr/lib/security/classpath.security saved as /usr/lib/security/classpa                                                                                        th.security.rpmsave
warning: /usr/lib64/security/classpath.security saved as /usr/lib64/security/cla                                                                                        sspath.security.rpmsave
[root@rhel5 Server]# rpm -qa|grep gcj
[root@rhel5 Server]# java -version
-bash: /usr/bin/java: No such file or directory

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-761871/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12690159