CentOS 7 and Puppet unable to install nc


I am having a weird issue with having puppet enforce the package nc.

I installed it manually in the end via: yum install nc

I see puppet does it via:
/usr/bin/yum -d 0 -e 0 -y list nc
Returns: Error: No matching Packages to list

I have tested this by command line as well:
yum list nc
Returns Error: No matching Packages to list

Yet, when I do:
yum install nc
Returns: Package 2:nmap-ncat-6.40-4.el7.x86_64 already installed and latest version

What am I missing?

Best Answer

Nc is a link to nmap-ncat.

It would be nice to use nmap-ncat in your puppet, because NC is a virtual name of nmap-ncat.

Puppet cannot understand the links/virtualnames

your puppet should be:

package {
    ensure => installed;
Related Question