pactree
Package dependency tree viewer for pacman.
TLDR
Print the dependency tree of a specific package
Print what packages depend on a specific package
Dump dependencies one per line, skipping duplicates
Include optional dependencies of a specific package and colorize the output
Display help
SYNOPSIS
pactree [options] package
DESCRIPTION
Pactree produces a dependency tree for a package.
By default, a tree-like output is generated, but with the --graph option, a Graphviz description is generated.
OPTIONS
-a, --ascii
Use ASCII characters for tree formatting. By default, pactree will use Unicode line drawing characters if it is able to detect that the locale supports them.
-b, --dbpath
Specify an alternative database location.
-c, --color
Colorize output.
-d, --depth <num>
Limits the number of levels of dependency to show. A zero means show the named package only, one shows the packages that are directly required.
-g, --graph
Generate a Graphviz description. If this option is given, the --color and --linear options are ignored.
-h, --help
Output syntax and command-line options.
-l, --linear
Prints package names at the start of each line, one per line.
-r, --reverse
Show packages that depend on the named package.
-s, --sync
Read package data from sync databases instead of local database.
-u, --unique
List dependent packages once. Implies --linear.
-o, --optional[=DEPTH]
Additionally prints optional dependencies up to a certain depth, default 1 for immediate optional dependencies. When used in conjunction with -r it shows which packages it is optional for. In Graphviz mode, produce dotted lines. Negative values mean infinite depth.
--config <file>
Specify an alternate pacman configuration file.
--debug
Print log messages produced by libalpm.
--gpgdir <dir>
Specify an alternate GnuPG directory for verifying database signatures (default is /etc/pacman.d/gnupg).
BUGS
Bugs? You must be kidding; there are no bugs in this software. But if we happen to be wrong, file an issue with as much detail as possible at https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/new.
AUTHORS
Current maintainers:
·
Johannes Löthberg <johannes@kyriasis.com>
·
Daniel M. Capella <polyzen@archlinux.org>
For additional contributors, use git shortlog -s on the pacman-contrib.git repository.