display recursive dependancies

Bug #245238 reported by Rehan Khan
4
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Wishlist
Unassigned

Bug Description

Imported: http://tracker.labix.org/issue300

Reason: Review Issue

further details: https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration

msg1133 (view) Author: nickbrown Date: 2007-04-11.11:54:25

> How do I query the complete set of dependancies for a package?
>
> I can easily get the direct dependacies;
> smart query --show-requires --show-providedby <packagename>
>
> but I also want the recursive dependancies of the dependancies.
> I can achive this using Mandriva's tools;
> urpmq -d <packagename>
>
> How do I achive something similar using smart?

It's quite easy to do that with code, but I don't think we're
exposing that feature through the UI in any way right now. Would
be an interesting feature to add in the near term.

Hmm.. you could try to use export relations to prolog with
"smart query --format=prolog --show-all" and then do the query
with prolog, but that's for the brave. ;-)

Revision history for this message
Rehan Khan (rasker) wrote :

Actually this is the equivalent of echo n | smart upgrade or echo n | smart install <pkg>. I guess this would be useful in the query command.

Rehan Khan (rasker)
Changed in smart:
importance: Undecided → Wishlist
Revision history for this message
Nick Brown (nickbroon) wrote :

Mandriva urpmq provides the following options:

--requires
           Prints the package requires.

--requires-recursive
           Print dependencies (maximal closure).

--whatprovides
           Search in provides to find package.

--whatrequires-recursive
           Reverse search to what requires recursively the package given
           (looking through virtual packages).

It would be very useful for smart to provide the equivalent. It currently provides:

--show-provides Show provides for the given packages
--show-requires Show requires for the given packages

It would should also provide:

--show-provides-recursive
--show-requires-recursive

this would be particularly useful with the dotty output for visualizing loops in dependencies etc:

smart query --format=dotty --show-requires-recursive basesystem-minimal

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.