2010/4/29 Michael Andres <ma@suse.de>:
Hi.
libzyppp-7.4 introduces a new /etc/zypp/zypp.conf option: ## ## Cleanup when deleting packages. Whether the solver should per default ## try to remove packages exclusively required by the ones he's asked to ## delete. ## ## Valid values: boolean ## Default value: false ## # solver.cleandepsOnRemove = false
The corresponding methods to get/set the option value in zypp::Resolver, just in case zypper/YaST would like to support this feature:
/** * Cleanup when deleting packages. Whether the solver should per default * try to remove packages exclusively required by the ones he's asked to * delete. */ void setCleandepsOnRemove( bool yesno_r ); void setDefaultCleandepsOnRemove(); // set back to default (in zypp.conf) bool cleandepsOnRemove() const;
The feature is basically usable. Some small piece of code evaluating the zypp/history, to find out which installed packages were selected by user and which by the resolver, is missing. This will improve the solver result, and will be added the next days.
With this will also be possible to do something as "zypper cleanSystemOfDeps"? I mean, if I select to not clean when I remove a package, will I have the possibility of clean it after? -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org