Method: Chef::Provider::Package::Portage#remove_package

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

#remove_package(name, version) ⇒ Object



116
117
118
119
120
121
122
123
124
125
126
# File 'lib/chef/provider/package/portage.rb', line 116

def remove_package(name, version)
  if(version)
    pkg = "=#{@new_resource.package_name}-#{version}"
  else
    pkg = "#{@new_resource.package_name}"
  end

  run_command_with_systems_locale(
    :command => "emerge --unmerge --color n --nospinner --quiet#{expand_options(@new_resource.options)} #{pkg}"
  )
end