Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Request #13346 Add uninstall option to follow dependencies
Submitted: 2008-03-08 20:18 UTC
From: timj Assigned:
Status: Open Package: PEAR (version 1.7.1)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-03-08 20:18 UTC] timj (Tim Jackson)
Description: ------------ It would be nice if "pear uninstall" had an option to uninstall all the dependencies which required the package you are uninstalling, instead of just failing or requiring the user to manually follow the dependency tree. A nice name for this might be "--alldeps" Test script: --------------- Assume package "Bar" depends on package "Foo". pear uninstall --alldeps Foo Expected result: ---------------- Foo and Bar are both uninstalled

Comments

 [2008-03-28 19:54 UTC] dufuz (Helgi Þormar Þorbjörnsson)
How would you like to handle things like say: package A depends on package B, package C depends on package B. you do pear uninstall --alldeps A Do you think we should not uninstall B or uninstall C also ? I'm leaning in the direction of not uninstalling B and stating the reason why since package C would count at the same level as A and not a dep. I think this would allow us to circumcise some nasty "Hey why did C just disappear"
 [2008-04-11 12:14 UTC] timj (Tim Jackson)
We should do what yum/apt etc. do basically. We uninstall enough stuff that the dependency tree afterwards is consistent. So uninstalling A in your example does not uninstall anything. We would only install things that *depend on* A, not things that A *depends on*.