guix graph

Table of Content

guix graph command provides a visual representation of packages and their dependencies.

Wikipedia


Overview

Sometimes we need to check the packages and their dependencies and this is diffcult to check manually. So the guix graph command can help us and provides a visual representation of DAG. By default, guix graph emits a DAG representation in the input format of Graphviz, so its output can be passed directly to the dot command of Graphviz.

guix graph options package

Example

For example, the following command generates a PDF file representing the package DAG for the GNU Core Utilities, showing its build-time dependencies:

guix graph coreutils | dot -Tpdf > dag.pdf

The output looks like this:

coreutils-graph

Note that you should install graphviz package for running the dot command.

References:

PantherX & (unofficial) GNU Guix Wiki.

Last update: 2023-12-24 22:58:50 +0000 | Apache-2.0

Inspired by the excellent Arch Linux Wiki