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.

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.

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 …