LinuxCommandLibrary

pacgraph

visualizes the dependency relationships between installed packages

TLDR

Produce an SVG and PNG graph

$ pacgraph
copy
Produce an SVG graph only
$ pacgraph -s
copy
Print summary to console
$ pacgraph -c
copy
Override the default filename/location
$ pacgraph -f [path/to/file]
copy
Change the color of packages that are not dependencies
$ pacgraph -t [color]
copy
Change the color of package dependencies
$ pacgraph -d [color]
copy
Change the background color
$ pacgraph -b [color]
copy
Change the color of links between packages
$ pacgraph -l [color]
copy

SYNOPSIS

pacgraph [options]

DESCRIPTION

pacgraph visualizes the dependency relationships between installed packages on Arch-based systems. It generates a graph showing packages as nodes sized by their disk usage, with lines connecting packages to their dependencies.
The output can be an SVG image, PNG image, or console text summary. The tool helps users understand their system's package structure, identify large packages, and visualize dependency chains. Colors distinguish between explicitly installed packages and dependencies.

PARAMETERS

-s, --svg

Produce SVG output only (no PNG)
-c, --console
Print summary to console instead of generating graph
-f, --file path
Output filename (without extension)
-t, --top color
Color for explicitly installed packages
-d, --dep color
Color for dependency packages
-b, --background color
Background color of the graph
-l, --link color
Color for dependency links
-p, --point size
Font point size
-n, --no-compression
Disable SVGZ compression
-e, --explicits
Include only explicitly installed packages
-o, --optdeps
Include optional dependencies

CAVEATS

Large systems with many packages produce complex graphs that may be difficult to read. PNG generation requires additional dependencies (typically graphviz or PIL). Do not include file extension in the -f option.

HISTORY

Developed for Arch Linux to provide visual insight into package relationships. Helps users understand disk usage distribution across packages and identify opportunities for cleanup by showing which packages have few dependents.

SEE ALSO

pacman(8), pactree(8), expac(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community