[Yum-devel] yum dependency solver

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Tue Nov 1 18:00:31 UTC 2011


On Tue, Nov 1, 2011 at 10:56 AM, Qiming Ye <yeqiming at gmail.com> wrote:

> Dear list,
>
> I'm looking for a simple way to use yum api to solve a certain package's
> dependencies, I grep'ed the doc & source code and found findDeps(), but
> this method expects the parameter to be pkgobj, how can I translate a
> string to a package object?
>
> Thank you,
>
> - Tim
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
>
you can check the get_dependecies in yumex source

https://github.com/timlau/yumex/blob/master/src/yumexbackend/yum_server.py#L664

It will give you and idea, how to do it

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20111101/2e24e43a/attachment.html>


More information about the Yum-devel mailing list