[Yum-devel] post 3.2.0 things to think about

seth vidal skvidal at linux.duke.edu
Wed May 2 20:57:42 UTC 2007


On Wed, 2007-05-02 at 16:22 -0400, James Bowes wrote:
> Konstantin Ryabitsev wrote:
> > On 5/2/07, seth vidal <skvidal at linux.duke.edu> wrote:
> >> Any of those things seem cool or silly?
> > 
> > What would be cool, is the following behaviour:
> > 
> > 1. I run "yum install foo"
> > 2. libbar, libbaz, and libquux are installed as deps
> > 3. I decide I don't like foo, and run "yum erase foo"
> > 4. Yum looks at "requires" and offers to remove all those that don't
> > have any other dependencies among installed packages. I.e. if no other
> > package requires libbar, libbaz, or libquux, I'm offered a choice to
> > remove them.
> > 
> > This is probably going to be a pain in the ass to implement, and
> > probably will be better suited for a gui, but it'd be a neat feature,
> > as my installed base grows with time due to various orphaned deps.
> 
> I've been working on this as a plugin, as a matter of fact. Right now it
> sucks for most cases. If anyone is interested in playing with it in its
> broken state, I can put the git repo online this evening.
> 
> Now, let's see if Seth has already implemented this one in yum shell :P
> 

leaf nodes can be removed using package-cleanup in yum-utils. We should
definitely graft some of that back in to do the clean up. The code isn't
too bad, actually.

We could even do some funky heuristic of INSTALLTIME to tell if it was
installed right before the thing that dep'd on it.


-sv





More information about the Yum-devel mailing list