apk-dot(8)
apk dot - generate graphviz graphs
apk dot [<options>...] [pkgmask...]
apk dot renders package dependencies as graphviz graphs.
The graph is generated for the packages matching the masks given, or for every known package if unspecified (this will generate a large and unwieldy graph).
--errors Consider only packages with errors. This is useful for visually reporting e.g. cyclic dependencies and missing packages.
--installed Consider only installed packages.