当使用YUM清理多个软件包的时候,可以用空格依次分割。
具体如下:
[root@LinuxMe ~]# rpm -qa | grep --color Percona Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 Percona-Server-client-57-5.7.13-6.1.el6.x86_64 [root@LinuxMe ~]# yum remove Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 Percona-Server-client-57-5.7.13-6.1.el6.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package Percona-Server-client-57.x86_64 0:5.7.13-6.1.el6 will be erased ---> Package Percona-Server-shared-57.x86_64 0:5.7.13-6.1.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: Percona-Server-client-57 x86_64 5.7.13-6.1.el6 @percona-release-x86_64 37 M Percona-Server-shared-57 x86_64 5.7.13-6.1.el6 @percona-release-x86_64 3.7 M Transaction Summary ================================================================================ Remove 2 Package(s) Installed size: 41 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : Percona-Server-client-57-5.7.13-6.1.el6.x86_64 1/2 Erasing : Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 2/2 Verifying : Percona-Server-client-57-5.7.13-6.1.el6.x86_64 1/2 Verifying : Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 2/2 Removed: Percona-Server-client-57.x86_64 0:5.7.13-6.1.el6 Percona-Server-shared-57.x86_64 0:5.7.13-6.1.el6 Complete! [root@LinuxMe ~]#
——————————————
Done。