Method: Chef::Provider::Package::Yum#install_package

Defined in:
lib/chef/provider/package/yum.rb

#install_package(name, version) ⇒ Object



175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/chef/provider/package/yum.rb', line 175

def install_package(name, version)
  if @new_resource.source 
    run_command_with_systems_locale(
      :command => "yum -d0 -e0 -y #{@new_resource.options} localinstall #{@new_resource.source}"
    )
  else
    run_command_with_systems_locale(
      :command => "yum -d0 -e0 -y #{@new_resource.options} install #{name}-#{version}#{yum_arch}"
    )
  end
  @yum.flush
end