Hi there, So, another approach would be to manually do something like: l = [] for p in pool: if p.installedBySolver(): needed = False for q in pool: if q.requires (p): needed = True break if not needed: l.append (p) Is there some p.installedBySolver() method though? If not, is there a cheaper way to implement then, than digging up the respective log in parser::HistoryLogReader. Thanks, Ricardo Quoting "Ricardo Cruz" <rpmcruz@alunos.dcc.fc.up.pt>:
Hi guys,
zypp has recently added support for removing any unnecessary dependencies associated with a package the user removed: zypp::getZYpp()->resolver()->setCleandepsOnRemove(true);
I wonder if you can use this feature retroactively? That is, to remove all loose dependencies -- those being defined as a package installed by the solver (not by explicit user install), and that is not a requisite of any other installed package.
It would be especially cool to get those unneeded packages in the form of a list.
Thanks, Ricardo
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org