Discussion:
Is there a tool to visualize RPM dependencies (by size)
Richard W.M. Jones
16 years ago
Permalink
Has anyone written a tool to visualize RPM dependencies? Preferably
graphically, and I'm primarily interested in the size of each
dependent package.

+-------------------+
| foo (1.3MB) |
+-------------------+
| |
+-----+ +------------------------+
| bar | | baz (2 MB) |
+-----+ +------------------------+
| | | | |

I found rpmgraph[1] but it only does dependencies, not size.

Rich.

[1] http://www.inf.ethz.ch/personal/lombardo/projects/index.html
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
Seth Vidal
16 years ago
Permalink
Post by Richard W.M. Jones
Has anyone written a tool to visualize RPM dependencies? Preferably
graphically, and I'm primarily interested in the size of each
dependent package.
+-------------------+
| foo (1.3MB) |
+-------------------+
| |
+-----+ +------------------------+
| bar | | baz (2 MB) |
+-----+ +------------------------+
| | | | |
I found rpmgraph[1] but it only does dependencies, not size.
I don't know of anything graphical - but it wouldn't be hard to sort the
deps of an installed pkg by the size of the pkg.

-sv
Richard W.M. Jones
16 years ago
Permalink
...
Am I right in thinking that 'repoquery' is the right tool for this
job?

Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
Seth Vidal
16 years ago
Permalink
...
Depends - do you want to report on the pkgs from a repo or from your
installed system?

-sv
Richard W.M. Jones
16 years ago
Permalink
Post by Seth Vidal
Post by Richard W.M. Jones
Am I right in thinking that 'repoquery' is the right tool for this
job?
Depends - do you want to report on the pkgs from a repo or from your
installed system?
From the repository.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
Camilo Mesias
16 years ago
Permalink
You could post-process the graph produced by rpmgraph to add in the
size info. You'd need to find the min and max sizes you're interested
in and scale that value to something reasonable, add in 'node [
fixedsize=true ]' and an extra entry for each node giving the scaled
size, eg. ' "bash" [width=1.75] '

-Cam
Seth Vidal
16 years ago
Permalink
Post by Seth Vidal
Post by Richard W.M. Jones
Am I right in thinking that 'repoquery' is the right tool for this
job?
Depends - do you want to report on the pkgs from a repo or from your
installed system?
From the repository.
try this:

http://skvidal.fedorapeople.org/misc/deps-by-size.py

for example:
$ python deps-by-size.py zsh
Loaded plugins: post-transaction-actions, remove-with-leaves
5966388 - glibc
4766326 - coreutils
2036281 - zsh
1887256 - bash
334108 - ncurses-libs
186790 - grep
182020 - info


-sv
Richard W.M. Jones
16 years ago
Permalink
Post by Seth Vidal
Post by Seth Vidal
Post by Richard W.M. Jones
Am I right in thinking that 'repoquery' is the right tool for this
job?
Depends - do you want to report on the pkgs from a repo or from your
installed system?
From the repository.
http://skvidal.fedorapeople.org/misc/deps-by-size.py
$ python deps-by-size.py zsh
Loaded plugins: post-transaction-actions, remove-with-leaves
5966388 - glibc
4766326 - coreutils
2036281 - zsh
1887256 - bash
334108 - ncurses-libs
186790 - grep
182020 - info
Great, thanks.

Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
Jakub Hrozek
16 years ago
Permalink
Post by Richard W.M. Jones
Has anyone written a tool to visualize RPM dependencies? Preferably
graphically, and I'm primarily interested in the size of each
dependent package.
rpmreaper does that in ncurses interface, but AFAIK only on installed
packages - not sure of that's what you want.

Jakub
Richard W.M. Jones
16 years ago
Permalink
Just to complete the circle on this:
http://et.redhat.com/~rjones/rpmdepsize/

Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
Farkas Levente
16 years ago
Permalink
Post by Richard W.M. Jones
http://et.redhat.com/~rjones/rpmdepsize/
an rpm for this rpm tool?:-)
--
Levente "Si vis pacem para bellum!"
Richard W.M. Jones
16 years ago
Permalink
Post by Farkas Levente
Post by Richard W.M. Jones
http://et.redhat.com/~rjones/rpmdepsize/
an rpm for this rpm tool?:-)
Yes, I'll put one up later. At the moment it's still an experiment.

Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
Richard W.M. Jones
16 years ago
Permalink
Post by Richard W.M. Jones
http://et.redhat.com/~rjones/rpmdepsize/
RPMs are there. Note that you definitely won't be able to
compile this on CentOS ... It requires Fedora >= 10.

Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
Loading...