You are not logged in.

#1 2011-05-17 18:25:40

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] looking for package like debtree on debian

do you know of a package that draws dependency graphs of installed packages, i.e. "draw me a graph of the package vlc and its dependencies"?
On Debian, there is a tool called debtree, on arch I found pacgraph, but pacgraph draws the entire system, I want to specify specific packages...

Thanks!

Last edited by awayand (2011-05-30 08:48:08)

Offline

#2 2011-05-17 18:31:34

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] looking for package like debtree on debian

aur/pactree?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#3 2011-05-17 18:47:13

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: [SOLVED] looking for package like debtree on debian

pacman -Ql pacman | grep pactree
pacman /usr/bin/pactree

pactree comes with the default install.

edit: pacgraph can draw dependencies for a single packet too...

pacgraph -m arch-repo vlc

Last edited by Wey (2011-05-17 18:54:23)

Offline

#4 2011-05-17 18:58:11

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] looking for package like debtree on debian

Wey wrote:
pacman -Ql pacman | grep pactree
pacman /usr/bin/pactree

Only as an aside - there is no grep needed:

pacman -Qo /usr/bin/pactree
/usr/bin/pactree is owned by pacman 3.5.2-1

To know or not to know ...
... the questions remain forever.

Offline

#5 2011-05-17 19:08:15

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: [SOLVED] looking for package like debtree on debian

That asumes you already know where the binary is located. On the other side, my approach implies you know the right package name. The following would resolve these problems:

pacman -Qo $( which pactree )

Offline

#6 2011-05-17 19:27:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] looking for package like debtree on debian

Wey wrote:

That asumes you already know where the binary is located. On the other side, my approach implies you know the right package name. The following would resolve these problems:

pacman -Qo $( which pactree )

Actually, you need neither to know the path nor use 'which':

[karol@black ~]$ pacman -Qo pactree
/usr/bin/pactree is owned by pacman 3.5.2-1

http://projects.archlinux.org/pacman.gi … ?id=v3.4.0
- allow -Qo to perform a functional 'which' (FS#8798)

Last edited by karol (2011-05-17 19:30:10)

Offline

#7 2011-05-17 21:10:59

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] looking for package like debtree on debian

Wey wrote:
pacman -Ql pacman | grep pactree
pacman /usr/bin/pactree

pactree comes with the default install.

Oops... sorry, used it only once...


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#8 2011-06-22 22:07:08

twl
Member
Registered: 2011-05-30
Posts: 20

Re: [SOLVED] looking for package like debtree on debian

how do you build a dependency tree with a package you don't have installed? (like one in AUR or the Repositories)

Offline

Board footer

Powered by FluxBB