aur-depends

aur-depends resolves and displays the dependency tree for AUR packages.

Synopsis

aur depends [options] <pkgname...>

Description

aur-depends queries the AUR RPC interface to compute the transitive dependency closure for one or more packages. It recursively finds all dependencies that are themselves in the AUR.

The default output is a list of pkgbase <tab> depends pairs, suitable for use with tsort to establish a valid build order.

Options

  • -a, --all: Include direct dependencies that are in the official repositories in the output.
  • -n, --pkgname: Output dependencies by pkgname instead of the default pkgbase.
  • -t, --table: Output dependency information in a detailed, tab-separated table format.
  • -r, --reverse: Reverse the output to depends <tab> pkgbase, suitable for tsort.
  • -J, --json: Print the full dependency information as a single JSON object.
  • --jsonl: Print information as JSON Lines (one JSON object per package per line).
  • --verify: Check versioned dependency requirements using vercmp.

Dependency Filtering

  • --optdepends: Include optdepends in the dependency resolution.
  • --no-depends: Exclude depends.
  • --no-makedepends: Exclude makedepends.
  • --no-checkdepends: Exclude checkdepends.
  • --no-provides: Do not consider provides when resolving dependencies.
  • --assume-installed=<package>: Prune the specified package and its dependencies from the graph, treating it as already installed. Can be specified multiple times or as a comma-separated list.