linux centos根据工具查找所在软件包命令:yum provides */nslookup

深碍√TFBOYSˉ_ 2023-10-05 19:08 56阅读 0赞

比如:根据nslookup查找其所在的软件包–
yum provides */nslookup

  1. [root@k8s-n0 deploy]# yum provides */nslookup
  2. 已加载插件:fastestmirror
  3. Determining fastest mirrors
  4. * base: mirrors.aliyun.com
  5. * extras: mirrors.aliyun.com
  6. * updates: mirrors.aliyun.com
  7. base/7/x86_64/filelists_db | 7.2 MB 00:01:18
  8. extras/7/x86_64/filelists_db | 224 kB 00:00:02
  9. http://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/updates/x86_64/repodata/527071d0823f7df92e332acbe7129f4dc9497c0b27774da765a7d01ba5e8bf16-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
  10. 正在尝试其它镜像。
  11. To address this issue please refer to the below wiki article
  12. https://wiki.centos.org/yum-errors
  13. If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
  14. updates/7/x86_64/filelists_db | 2.8 MB 00:00:00
  15. 32:bind-utils-9.11.4-26.P2.el7.x86_64 : Utilities for querying DNS name servers
  16. 源 :base
  17. 匹配来源:
  18. 文件名 :/usr/bin/nslookup
  19. 32:bind-utils-9.11.4-26.P2.el7_9.2.x86_64 : Utilities for querying DNS name servers
  20. 源 :updates
  21. 匹配来源:
  22. 文件名 :/usr/bin/nslookup

可以查找到其所在软件包名为bind-utils,安装即可:

  1. yum install -y bind-utils

参考连接:
Linux安装nslookup命

发表评论

表情:
评论列表 (有 0 条评论,56人围观)

还没有评论,来说两句吧...

相关阅读