Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#35661 - [pacman-contrib] pactree: show the shortest dependency path between packages foo and bar
Attached to Project:
Pacman
Opened by Karol Błażewicz (karol) - Wednesday, 05 June 2013, 17:35 GMT
Last edited by Allan McRae (Allan) - Sunday, 06 March 2022, 08:50 GMT
Opened by Karol Błażewicz (karol) - Wednesday, 05 June 2013, 17:35 GMT
Last edited by Allan McRae (Allan) - Sunday, 06 March 2022, 08:50 GMT
|
DetailsCan pactree show the shortest dependency path between packages foo and bar?
Why does foo depend on bar? $ pactree foo foo ├─a │ └─b │ ├─c │ │ └─d │ │ └─bar │ │ ├─e │ │ ├─f │ │ └─g │ │ └─i │ └─j │ └─bar ... Getting 'foo -> j -> bar' would be pretty useful. Currently I pipe pactree's output to less and search my way from bar to foo. |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 06 March 2022, 08:50 GMT
Reason for closing: None
Additional comments about closing: appears fixed
Sunday, 06 March 2022, 08:50 GMT
Reason for closing: None
Additional comments about closing: appears fixed
You're right, the shortest path is not 'foo -> j -> bar', but 'foo -> a -> b -> j -> bar'.
If there are multiple paths of the same length, any of them could be printed.
[1] https://github.com/jjk-jacky/pacdep/tree/next
$ ./pacdep -PSs gtk2 | grep ^" pixman"
pixman 727.00 KiB <- cairo-infinality-ultimate <- gtk2
$ ./pacdep -PSs gtk2 | grep ^" glibc"
glibc 31.37 MiB <- pixman <- cairo-infinality-ultimate <- gtk2
$ ./pacdep -PSs gtk2 | grep ^" iana-etc"
iana-etc 3.44 MiB <- filesystem <- glibc <- pixman <- cairo-infinality-ultimate <- gtk2
looks fine. Thanks!