yum 查找某个命令由哪个包提供

2019-07-31  本文已影响0人  Alexander_Zz

一、使用场景

需要使用某个命令,发现没有安装,yum 尝试了一下,发现不是这个包提供的。觉得自己去搜索引擎查找太丢人
yum whatprovides [COMMAND] 帮你解决问题

二、示例

]# yum whatprovides iostat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: mirrors.yun-idc.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
base/7/x86_64/filelists_db                                                                                                | 7.1 MB  00:00:09     
epel/x86_64/filelists_db                                                                                                  |  12 MB  00:00:02     
extras/7/x86_64/filelists_db                                                                                              | 246 kB  00:00:00     
updates/7/x86_64/filelists_db                                                                                             | 4.9 MB  00:00:00     
zabbix/x86_64/filelists_db                                                                                                |  69 kB  00:00:00     
zabbix-non-supported/x86_64/filelists                                                                                     |  660 B  00:00:00     
sysstat-10.1.5-17.el7.x86_64 : Collection of performance monitoring tools for Linux
Repo        : base
Matched from:
Filename    : /usr/bin/iostat

至此问题解决,只需要安装对应包就可以解决问题了

上一篇 下一篇

猜你喜欢

热点阅读