RedHat Linux卸载rpm包遇到error: specifies multiple packages

RedHat Linux卸载rpm包遇到error: specifies multiple packages

 

[root@testbed bin]# rpm -qa | grep subversion

subversion-1.4.2-4.el5

subversion-1.4.2-4.el5

[root@testbed bin]# rpm -e subversion-1.4.2-4.el5

error: "subversion-1.4.2-4.el5" specifies multiple packages

 

通过man rpm,发现–allmatches应该可以解决这个问题:

 

–allmatches

Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches

multiple packages.

 

[root@testbed bin]# rpm -e --allmatches subversion-1.4.2-4.el5

[root@testbed bin]#


你可能感兴趣的:(linux,redhat)