Forrest logo
tool overview
On this page you find all important commands for the CLI tool pactree. If the command you are looking for is missing please ask our AI.

pactree

Pactree is a command line tool used in Arch Linux and its derivatives. It is designed to show the dependency tree of a given package, allowing users to understand the dependencies and optional dependencies of a specific software package. By analyzing the package database, pactree determines which other packages are required or recommended for the installation and proper functioning of the target package. This information is presented in a tree-like structure, displaying the order and hierarchy of dependencies. Pactree can also be used to find reverse dependencies, i.e., packages that depend on a particular package. It is useful for troubleshooting issues related to package installation, upgrades, or removal, as it provides a visual representation of interdependencies. Additionally, pactree supports various options like sorting the tree alphabetically or by dependency level and displaying optional dependencies separately.

List of commands for pactree:

  • pactree:tldr:0be98 pactree: Print what packages depend on a specific package.
    $ pactree --reverse ${package}
    try on your machine
    explain this command
  • pactree:tldr:5edee pactree: Print the dependency tree of a specific package.
    $ pactree ${package}
    try on your machine
    explain this command
  • pactree:tldr:69e2d pactree: Include optional dependencies of a specific package and colorize the output.
    $ pactree --optional --color ${package}
    try on your machine
    explain this command
  • pactree:tldr:d90d1 pactree: Dump dependencies one per line, skipping duplicates.
    $ pactree --unique ${package}
    try on your machine
    explain this command
  • pactree:tldr:e885a pactree: Display help.
    $ pactree
    try on your machine
    explain this command
tool overview