Dependency visualisation of an RPM-based installation (a system, an image, etc.)
Just tell the script what you what to show, how you want to see it, and where you want to save it. Like this:
$ ./showme WHAT HOW WHERE
To look at the Fedora 30 container base image, run:
$ ./showme fedora:30 graph output.svg --sizes
... which produces a graph of all packages in the fedora:30 container image including sizes of all individual packages and some basic clustering. Clicking on a package highlights its relations to other packages.
See the original Fedora 30 container image graph and try interacting with it!
To look at your own Fedora system, run:
$ ./showme / graph output.svg
You can also look at an arbitrary DNF installation:
$ mkdir /tmp/cowsay $ sudo dnf --installroot /tmp/cowsay --releasever 30 install cowsay $ ./showme ./ graph output.svg
Graphs can be simplified by merging multiple nodes (packages) into a single node (group). This is useful, for example, when visualizing an httpd installation on top of the Fedora base container image.
$ ./showme asamalik/fedora-httpd:f30 graph test.svg --sizes --group-container "Fedora 30 Base Image" fedora:30
See the original httpd on top of the Fedora base image graph.
The above example might be better shown as a directed graph:
$ ./showme asamalik/fedora-httpd:f30 directed-graph test.svg --sizes --group-container "Fedora 30 Base Image" fedora:30
See the original directed graph of httpd. Again, it's interactive!
The script has been tested on Fedora 30.
$ sudo dnf install graphviz podman