Issue #4846 has been updated by Peter Meier. Status changed from Unreviewed to Duplicate
this is related to #2198 and can only be fixed if puppet provides a way to group various resources together. ---------------------------------------- Bug #4846: uninstalling packages gives failed dependencies errors http://projects.puppetlabs.com/issues/4846 Author: Benedikt Köppel Status: Duplicate Priority: Normal Assignee: Category: package Target version: Affected version: 0.25.5 Keywords: Branch: Hello I want to ensure that a few packages are not installed on my machine. I have defined this resource: package { [ 'php','php-gd','php-xmlrpc','php-cli','php-common','php-pdo','php-mbstring','php-mysql','php-pgsql' ]: ensure => absent } I found, that puppet wants to remove each packet separately. This gives errors such as: debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -e php-common-5.1.6-27.el5.x86_64' err: //httpd/Package[php-common]/ensure: change from 5.1.6-27.el5 to absent failed: Execution of '/bin/rpm -e php-common-5.1.6-27.el5.x86_64' returned 1: error: Failed dependencies: php-common = 5.1.6-27.el5 is needed by (installed) php-pdo-5.1.6-27.el5.x86_64 php-common = 5.1.6-27.el5 is needed by (installed) php-mbstring-5.1.6-27.el5.x86_64 php-common = 5.1.6-27.el5 is needed by (installed) php-xmlrpc-5.1.6-27.el5.x86_64 php-common = 5.1.6-27.el5 is needed by (installed) php-pgsql-5.1.6-27.el5.x86_64 It would be more convenient if all packages are uninstalled in one run, then the provider could decide how to handle the dependencies in between those packages. My system: puppet --version: 0.25.5 ruby --version: ruby 1.8.5 (2006-08-25) [x86_64-linux] cat /etc/redhat-release: Red Hat Enterprise Linux Server release 5.5 (Tikanga) yum --version: 3.2.22 rpm --version: RPM version 4.4.2.3 Best Regards, Benedikt Köppel -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
