Fix yum package_method to be able to delete packages

This is a followup to PR#806.