linux centos根據工具查詢所在軟體包命令:yum provides */nslookup
阿新 • • 發佈:2021-02-05
技術標籤:Linux
比如:根據nslookup查詢其所在的軟體包–
yum provides */nslookup
[[email protected] deploy]# yum provides */nslookup
已載入外掛:fastestmirror
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base/7/x86_64/filelists_db | 7.2 MB 00:01:18
extras/7/x86_64/filelists_db | 224 kB 00:00:02
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
正在嘗試其它映象。
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
updates/7/x86_64/filelists_db | 2.8 MB 00:00:00
32:bind-utils-9.11.4-26.P2.el7.x86_64 : Utilities for querying DNS name servers
源 :base
匹配來源:
檔名 :/usr/bin/nslookup
32: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命