Mailinglist Archive: zypp-devel (26 mails)

< Previous Next >
Re: [zypp-devel] List unnecessary dependencies
  • From: "Ricardo Cruz" <rpmcruz@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 08 Sep 2010 12:59:54 +0200
  • Message-id: <20100908125954.86942na1jibkv268@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxx>:

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

< Previous Next >
List Navigation
References