libtree
A tool that:
- 🌳 turns
ldd
into a tree - ☝️ explains how shared libraries are found or why they cannot be located
Output
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)
Install
- Latest version v3.0.1
arch sha256sum aarch64 (linux) 671a7ab57a068d5106595680389dd17c632c5eeb0b54bef4e3d22e1565f5676e
armv6l (linux) a28c1c2bbd3e3d28c8788fff5ff8494e2131701fbdec2aab59b9154b9e90eb7f
armv7l (linux) c1fa914db49f1b794579a95a483c09fb3aea5a9630cb8535af03b9d292cda379
i686 (linux) 57009c08c50fe290dff135e8444972fe6b86a2839fb8bd6d79975829a7a0a257
x86_64 (linux) 64b573b5cfadd584c2467bfa50614c78100a83088698ba96b034b17347f4bb28
- Older release v2.0.0
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