比如:根据nslookup查找其所在的软件包–
yum provides */nslookup
[root@k8s-n0 deploy]# yum provides */nslookup已加载插件:fastestmirrorDetermining fastest mirrors* base: * extras: * updates: base/7/x86_64/filelists_db | 7.2 MB 00:01:18extras/7/x86_64/filelists_db| 224 kB 00:00:02http://mirrors.tuna./centos/7.9./updates/x86_64/repodata/527071d0823f7df92e332acbe7129f4dc9497c0b27774da765a7d01ba5e8bf16-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found正在尝试其它镜像。To address this issue please refer to the below wiki article /yum-errorsIf above article doesn't help to resolve this issue please use /.updates/7/x86_64/filelists_db | 2.8 MB 00:00:0032:bind-utils-9.11.4-26.P2.el7.x86_64 : Utilities for querying DNS name servers源 :base匹配来源:文件名 :/usr/bin/nslookup32:bind-utils-9.11.4-26.P2.el7_9.2.x86_64 : Utilities for querying DNS name servers源 :updates匹配来源:文件名 :/usr/bin/nslookup
可以查找到其所在软件包名为bind-utils
,安装即可:
yum install -y bind-utils
参考连接:
Linux安装nslookup命