Issue #13462 has been updated by Simon Guest.

This feature of yum is available as a plugin.  On CentOS 6 it's in the package 
yum-plugin-remove-with-leaves.  This is not available on my CentOS 5 machine.

If the package is installed, the file 
/usr/lib/yum-plugins/remove-with-leaves.py will exist.

Maybe the feature could be enabled if this file exists?  (I don't know a better 
way of checking whether a yum plugin is available;  the yum API is pretty 
poorly documented - at least, that's my excuse.)

I am unlikely to submit a patch for this, because I am stuck on the version of 
Puppet in CentOS 6 (actually in EPEL 6), which is currently 2.6.14, so I can't 
benefit immediately from new releases.  Sorry.

cheers,
Simon

----------------------------------------
Feature #13462: yum provider should use --remove-with-leaves
https://projects.puppetlabs.com/issues/13462#change-61212

Author: Simon Guest
Status: Needs More Information
Priority: Normal
Assignee: 
Category: Red Hat
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


By default, yum remove does not removed installed dependencies.  This is really 
annoying, and clutters up the system with unwanted dependencies.

The yum plugin remove-with-leaves adds an additional option to yum remove, 
namely --remove-with-leaves.

I suggest puppet use this, instead of using rpm to remove packages, so that 
automatically installed dependencies get removed.


-- 
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.

Reply via email to