my code:
package ‘unzip’ do
end.run_action(:install)
chef-client run:
-
package[unzip] action install
================================================================================
Error executing actioninstall
on resource ‘package[unzip]’Chef::Exceptions::Package
installp -L -d - ---- Begin output of installp -L -d ----
STDOUT:
STDERR: installp: option requires an argument – d
Usage installp: Install Software: Apply Only (-a) or Apply/Commit (-ac):
installp [-R Path] {-a | -ac[N]} [-e LogFile] [-V Number] [-d Device]
[-bBDEIpqQSvwX] [-F | -g] [-O{[r][s][u]}] [-t SaveDirectory]
[-z BlockSize] { FileSet [Level] … | -f ListFile | all }
xxxxx:/root # rpm -qa | grep unzip
unzip-5.51-1
why chef client trying to install package unzip even though package was already installed on server??