To give a better idea of why this can be difficult, I created the following graph.
63988 Dependencies between 14319 software packages |
Packages are drawn on the circumference of the circle and a dependency is indicated by a line draw from one package to another. The color of a package is randomly generated, while the color of a line is determined by the package that is required by the other packages.
Every package has a line starting on the rim of the circle drawn radially outwards. The length of the line is determined by the amount of other packages that depend on the package.
Here is a closeup of a small part of the graph:
The most common dependencies are development tools. This is a list of the 15 packages with the most reverse dependencies:
Package | # of reverse dependencies |
---|---|
dev-lang/perl | 1559 |
dev-util/pkgconfig | 1195 |
dev-lang/python | 1047 |
x11-libs/gtk+ | 1042 |
sys-devel/libtool | 950 |
app-arch/unzip | 878 |
sys-devel/automake | 818 |
sys-devel/autoconf | 766 |
dev-libs/glib | 652 |
x11-libs/qt-gui | 612 |
virtual/jdk | 588 |
sys-apps/sed | 575 |
x11-libs/libX11 | 545 |
app-admin/eselect-python | 496 |
dev-util/cmake | 455 |
The graph was created with data obtained from the Gentoo Portage tree and drawn using the Python Image Libray (PIL).
10 comments:
Cool graph boeta, het jy dit gemaak?
Do you have code or data you're willing to share?
dependency is making me sick >.<
@David I'm a little embarrassed of the code, but drop me a mail and I'll send you the code and the data
It's not "dependency hell" unless it fails :-)
How about generating a tree instead?
Sorry, I wanted to ask about this image: what is the software package located at 90 degrees / due East / 3:00?
@Anonymous I can't really make out myself :) , but I think it's an artifact that makes that package seem interesting. In that graph I drew dependencies in order, so the last package with all its dependency lines are drawn on top.
I stumbled on to this website after a rough bout with dependency hell and looking for a way to blow off steam. Do you have a larger version of your graph? I'd like to hang it in my office.
@groundzero sure, just drop me a mail and I can email you a higher resolution copy
Post a Comment