A tool that:
- ๐ณ turns
ldd
into a tree - โ๏ธ explains how shared libraries are found or why they cannot be located
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-in-c/master/libtree.c | cc -o libtree -x c - -std=c99 -D_FILE_OFFSET_BITS=64
By default, certain standard dependencies are not shown. For more verbose output use
libtree -v
Show libraries skipped by defaultlibtree -vv
Show dependencies of libraries skipped by defaultlibtree -vvv
Show dependencies of already encountered libraries
Use the --path
or -p
flags to show paths rather than sonames:
libtree -p $(which tar)