-bash: xx: command not found 在有yum源情況下處理


-bash: xx: command not found 在有yum源情況下處理

yum provides "*/xx"  ###"xx"代表某命令

或者 yum provides "*bin/xx"

根據查詢出來的結果進行安裝

[root@***]# yum provides "*/nmap"
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
2:nmap-4.11-2.x86_64 : 網絡探索工具和安全掃描器
Repo        : local_iso
Matched from:
Filename    : /usr/share/nmap
Filename    : /usr/bin/nmap

查詢出來安裝

yum -y install nmap-4.11-2.x86_64


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM