On 08/19/2011 12:56 PM, Jonathan Gazeley wrote:
> Is it possible to force use of the yum backend for package removals like
> this?
> 
> package { ['aspell', 'aspell-en']:
>   ensure => absent,
>   provider => 'yum',
> }
> 
> I'm not near a puppet machine to test this, but it's probably worth a shot.


Fri Aug 19 18:55:21 +0200 2011
/Stage[main]/Packages/Package[aspell-en]/ensure (err): change from
6.0-2.1 to absent failed: Execution of '/bin/rpm -e
aspell-en-6.0-2.1.x86_64' returned 1: error: Failed dependencies:
        aspell-en is needed by (installed) aspell-0.60.3-7.1.x86_64


Fri Aug 19 18:56:00 +0200 2011
/Stage[main]/Packages/Package[aspell]/ensure (err): change from
0.60.3-7.1 to absent failed: Execution of '/bin/rpm -e
aspell-0.60.3-7.1.x86_64' returned 1: error: Failed dependencies:
        aspell >= 12:0.60 is needed by (installed) aspell-en-6.0-2.1.x86_64


No, it uses rpm and that's it. And it cycles through the list item by
item. If it would only run rpm -e package1 package2, but not even that :(

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to