命令: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
posted on 2022-07-25 17:37  步孤天  阅读(147)  评论(0编辑  收藏  举报