• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pactree Command Examples in Linux

by Deepika

“pactree” is a tool in Arch Linux that allows users to view the dependencies of packages installed on their system. The tool displays the dependencies of a package in the form of a tree, showing the parent package and all the packages that it depends on. This provides a visual representation of the relationships between packages, making it easier to understand the dependencies of a package and to see what packages are needed in order to install a particular package.

“pactree” can be used to list the dependencies of a single package, or to display the complete dependency tree of all installed packages. This information can be useful for troubleshooting problems with the system, for example, if a package is missing a required dependency, or if a package is causing a conflict with another package. “pactree” can also be used to evaluate the impact of installing or removing a package, by showing the packages that would be affected.

pactree Command Examples

1. Print the dependency tree of a specific package:

# pactree package

2. Print what packages depend on a specific package:

# pactree --reverse package

3. Dump dependencies one per line, skipping duplicates:

# pactree --unique package

4. Include optional dependencies of a specific package and colorize the output:

# pactree --optional --color package

5. Display help:

# pactree

Filed Under: Linux

Some more articles you might also be interested in …

  1. logrotate Command Examples in Linux
  2. pdftoppm: command not found
  3. protonvpn-cli Command Examples in Linux
  4. i3lock Command Examples in Linux
  5. How to Configure SSH to restrict Users/Groups with allow and deny directives
  6. Allow cronjobs to run by pam even if user password is expired
  7. fprintd-verify Command Examples in Linux
  8. Volume “test_vg/lvol0” is not active locally – Error while running lvcreate
  9. httpd Command Examples in Linux
  10. Linux: No space left on device while df command shows a lot of free space

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright