yum whatprovides host 根据命令查找包

[root@Cobbler ~]# yum whatprovides host Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile  * base: mirrors.aliyun.com  * epel: mirrors.aliyun.com  * extras: mirrors.aliyun.com  * updates: mirrors.aliyun.com epel/x86_64/filelists_db                                                                                                              | 9.9 MB  00:00:00     extras/7/x86_64/filelists_db                                                                                                          | 486 kB  00:00:00     updates/7/x86_64/filelists_db                                                                                                         | 2.1 MB  00:00:00     32:bind-utils-9.9.4-50.el7.x86_64 : Utilities for querying DNS name servers Repo        : base Matched from: Filename    : /usr/bin/host

32:bind-utils-9.9.4-51.el7.x86_64 : Utilities for querying DNS name servers Repo        : updates Matched from: Filename    : /usr/bin/host

[root@Cobbler ~]# host www.baidu.com -bash: host: command not found

原文地址:https://www.cnblogs.com/gaoyuechen/p/7852455.html