命令:yum whatprovides 命令的正则表达式
举例如下:
[root@localhost ceph]# yum whatprovides rbd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
1:ceph-common-10.2.5-4.el7.x86_64 : Ceph Common
Repo : base
Matched from:
Filename : /usr/bin/rbd
1:ceph-common-10.2.9-0.el7.centos.x86_64 : Ceph Common
Repo : ceph
Matched from:
Filename : /usr/bin/rbd
1:ceph-common-10.2.9-0.el7.centos.x86_64 : Ceph Common
Repo : @ceph
Matched from:
Filename : /usr/bin/rbd
转载请注明来源:https://www.cnblogs.com/bugutian/