haampie / libtree

ldd as a tree
MIT License
2.67k stars 60 forks source link

libtree

A tool that:

Screenshot of libtree

Output

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

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

Use --max-depth to limit the recursion depth.

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 ```