Skip to content

ismaell/libtree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

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

Install

  • Prebuilt binaries for v3.1.0
    arch sha256sum
    aarch64 (linux) c3d1e50801db8cd71427cccc00bb033211b68727ee5ff9858d5a22048fae4891
    armv6l (linux) 4608828d01c383fdf5c02535bcce70493955a38e46c1ae0a1063c667625d11da
    armv7l (linux) 9df3671b92151c01f37f3b38c1377dd2b179e559a033d9e23a22c669cc1cdae2
    i686 (linux) fb83c54196d77bee4ba83c42f014e5b8fc359d8b02114387f7ad46fedc83faf5
    x86_64 (linux) 8d85183200300437b935574f259ed01efce4319eaec8525d87096c698a0f4c70
  • Fedora / RHEL / CentOS
    $ dnf install epel-release # For RHEL and derivatives enable EPEL first 
    $ dnf install libtree-ldd
  • Ubuntu 22.04+
    apt-get install libtree
  • 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

Packages

No packages published

Languages

  • C 84.6%
  • Makefile 15.4%