
On 28 August 2013 08:16, Dominique Leuenberger a.k.a. Dimstar <dimstar@opensuse.org> wrote:
* I actually recently discovered that zypper DOES have cleanup, but you need to do the right things. so instead of 'zypper rm <package>', you'd use 'zypper rm -u <package>' which triggers removal of packages that were left only for this package (as last consumer) on the system... this should become default imho!
$ fgrep solver.cleandepsOnRemove -B15 /etc/zypp/zypp.conf ## ## EXPERTS ONLY: Cleanup when deleting packages. Whether the solver should ## per default try to remove packages exclusively required by the ones he's ## asked to delete. ## ## This option should be used on a case by case basis, enabled via ## command line options or switches the applications offer. Changing ## the global default on a system where unattended actions are performed, ## may easily damage your system. ## ## CHANGING THE DEFAULT IS NOT RECOMMENDED. ## ## Valid values: boolean ## Default value: false ## solver.cleandepsOnRemove = true Also, there is a bug report I can't find any more about how this works. Last time I checked it depended on parsing the whole /var/log/zypp/history file. A flag in the RPM database sounds nicer. And the semantics about the "InstallationImage" entries where not very clear. IIRC the problem was about some entries containing a "root@opensuse" column and others an empty column. In any case, it would be something to suggest in the zypp-devel list. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org