systemctl-list-dependencies
Show unit dependency tree
TLDR
Show default.target dependencies
SYNOPSIS
systemctl list-dependencies [OPTIONS] [UNIT...]
DESCRIPTION
systemctl list-dependencies displays a unit's dependency tree in a hierarchical format. By default, it shows Requires and Wants dependencies. With `--all`, it includes all dependency types (After, Before, Conflicts, etc.).
The `--reverse` option inverts the view, showing which units depend on the specified unit rather than what it depends on.
PARAMETERS
-a, --all
Include all dependency types (not just Requires and Wants)-t, --type= TYPE
Filter by unit type--reverse
Show units that depend on this unit instead--no-legend
Suppress header and footer (for scripts)--no-pager
Disable pager
CAVEATS
The tree can be very large for targets like default.target. Active units are marked differently from inactive ones. The output represents configuration, not runtime state.
HISTORY
The list-dependencies subcommand helps understand the complex dependency relationships in systemd, essential for debugging boot issues and understanding service ordering.
SEE ALSO
systemctl(1), systemctl-list-units(1), systemd.unit(5)
