作者:富农032884 | 来源:互联网 | 2023-05-18 08:09
我有一个奇怪的问题,让木偶强制执行包nc.
我通过以下方式手动安装: yum install nc
我看到puppet通过以下方式执行:
/usr/bin/yum -d 0 -e 0 -y list nc
返回:错误:没有匹配的要列出的包
我也通过命令行对此进行了测试:
yum list nc
返回错误:没有匹配的要列出的包
然而,当我这样做:
yum install nc
返回:包2:已安装nmap-ncat-6.40-4.el7.x86_64和最新版本
我错过了什么?
1> 小智..:
Nc是nmap-ncat的链接.
在你的木偶中使用nmap-ncat会很好,因为NC是nmap-ncat的虚拟名称.
Puppet无法理解链接/虚拟名称
你的傀儡应该是:
package {
'nmap-ncat':
ensure => installed;
}
2> 小智..:
我不知道什么是木偶
这个
yum install nmap-ncat.x86_64
解决我的问题,希望有所帮助
yum在没有添加后缀fwiw的情况下为我找到了x84_64版本,所以我做了`yum install nmap-ncat`。