Results 1 to 4 of 4

Thread: How to list dependencies of a package as a tree?

  1. #1

    Default How to list dependencies of a package as a tree?

    It can be done by running `repoquery --tree-requires pkg` in centos. However, the yum-utils pkg on opensuse, which contains the repoquery script, delivers a version of repoquery without tree-requires ability.
    I've searched for a while. One way is to use an outdated ruby script depgrapher. Cause I'm not familar with ruby, and the script won't run after some simple fixes. I gave up on it. Another is to use zypper --debug-solver and add <graphic/> node. Unfortunately <graphic/> was deprecated, and no substitution was provided.
    So I went here to ask if there's a program for it, wheter GUI or CLI.

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,545

    Unhappy Re: How to list dependencies of a package as a tree?

    A tree of the openSUSE dependencies doesn't seem to be possible …

    The closest I've managed to find is: zypper search --requires --verbose «Package name»
    • But, it doesn't format the output as a tree …

  3. #3

    Default Re: How to list dependencies of a package as a tree?

    Quote Originally Posted by dcurtisfra View Post
    A tree of the openSUSE dependencies doesn't seem to be possible …

    The closest I've managed to find is: zypper search --requires --verbose «Package name»
    • But, it doesn't format the output as a tree …
    Exactly. I'm trying to find the dependency path, so I'm afraid a tree view would be a lot helpful.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,545

    Talking Re: How to list dependencies of a package as a tree?

    Quote Originally Posted by runapp View Post
    so I'm afraid a tree view would be a lot helpful.
    Then, I can only suggest an openSUSE Bug Report to request the development of a tool, similar to the YUM tool “repoquery”, which recursively reports package dependencies as a CLI tree.

    YaST sort of does this already, when you attempt to remove a package which is depended on by other packages – “rpm --erase --test --verbose «Package Name»” is a possible candidate for a script command – I suspect that “zypper remove --dry-run --details «Package Name»” will not be useful as a script command because, it needs “root” privileges …

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •