/libtree

ldd as a tree

Primary LanguageCMIT LicenseMIT

libtree

A tool that:

  • 🌳 turns ldd into a tree
  • ☝️ explains how shared libraries are found or why they cannot be located

Screenshot of libtree

Output

By default, certain standard dependencies are not shown. For more verbose output use

  • libtree -v Show libraries skipped by default
  • libtree -vv Show dependencies of libraries skipped by default
  • libtree -vvv Show dependencies of already encountered libraries

Use the --path or -p flags to show paths rather than sonames:

  • libtree -p $(which tar)

Install

Building from sources

libtree requires a C compiler that understands c99

git clone https://github.com/haampie/libtree.git
cd libtree
make # recommended: LDFLAGS=-static
Or use the following unsafe quick install instructions
curl -Lfs https://raw.githubusercontent.com/haampie/libtree/master/libtree.c | ${CC:-cc} -o libtree -x c - -std=c99 -D_FILE_OFFSET_BITS=64