LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pacgraph

visualizes the dependency relationships between installed packages

TLDR

Draw the dependency graph as both SVG and PNG
$ pacgraph
copy
Stop after the SVG
$ pacgraph --svg
copy
Print a text summary instead of drawing anything
$ pacgraph --console
copy
Write to a chosen path, without an extension
$ pacgraph --file [path/to/graph]
copy
Recolor the packages nothing else depends on
$ pacgraph --top [color]
copy
Recolor the dependencies
$ pacgraph --dep [color]
copy
Recolor the arrows between packages
$ pacgraph --link [color]
copy
Change the background
$ pacgraph --background [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
--show-req-by
Show packages that require the listed package (reverse dependencies)
-m repo
Draw only the specified package/repo and its dependencies

INSTALL

yay -S pacgraph
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid