Mailinglist Archive: zypp-devel (39 mails)

< Previous Next >
Re: [zypp-devel] [libzyppp-7.4] Cleanup when deleting packages.
  • From: Cristian Morales Vega <cmorve69@xxxxxxxx>
  • Date: Sat, 1 May 2010 11:45:28 +0200
  • Message-id: <k2g8235e6f41005010245p9b9ed21fjdb7964541bdfdedb@xxxxxxxxxxxxxx>
2010/4/29 Michael Andres <ma@xxxxxxx>:

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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups