rpm卸载多个有依赖的rpm包

 

[root@dev OOo_3.1.0_src]# rpm -q libxml2

[root@dev OOo_3.1.0_src]# rpm -qa libxml2*

[root@dev ~]# rpm -qa |grep libxml2
libxml2-python-2.6.26-2.1.12
libxml2-devel-2.6.26-2.1.12
libxml2-2.6.26
libxml2-devel-2.6.26-2.1.12

 

--allmatches 匹配多个,--nodeps 不检查依赖
[root@dev OOo_3.1.0_src]# rpm -e --allmatches libxml2-2.6.26-2.1.12 --nodeps

 

成套的卸载

rpm -e `rpm -qa |grep libxml2`

rpm -e `rpm -qa |grep openoffice` `rpm -qa |grep ooobasis`

 

参考:

http://blog.csdn.net/lltaoyy/article/details/7552834

http://hi.baidu.com/tidehc/item/6d88d0360433bef2e7bb7ac5

 

你可能感兴趣的:(linux,rpm,卸载)