您的位置:首页 > 其它

删除依赖命令

2015-09-16 13:56 363 查看
[root@root ~]# rpm -qa |grep jdk

java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

[root@root~]# rpm -e java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

error: Faileddependencies:

jre >= 1.5.0 is needed by(installed) libreoffice-ure-1:3.4.5.2-16.el6.x86_64

libjawt.so()(64bit) is needed by(installed) libreoffice-core-1:3.4.5.2-16.el6.x86_64

libjawt.so(SUNWprivate_1.1)(64bit) isneeded by (installed) libreoffice-core-1:3.4.5.2-16.el6.x86_64

从上面能够看出删除java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64时有依赖包,所以删除错误

解决方法:

[root@root ~]#rpm --nodeps -e java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

[root@root~]# rpm -qa |grep jdk

[root@root~]#

作者:儱剑阿攵

转载请注明链接:http://blog.csdn.net/awenluck/article/details/39368687
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: