-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

相关文章:

  • 2021-07-22
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-08-11
  • 2021-10-11
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-09-05
  • 2021-07-17
相关资源
相似解决方案