libtree(1)

πŸ“¦
version 3.1.1 Β· 2 versions
  • 3.1.1 Β· alpine 3.24, debian bookworm, debian trixie, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.0.2 Β· ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ libtree β€” print shared object dependencies as a tree ✨

okay bestie, so libtree is a thing in the User Manuals section of the manual (section 1, obviously πŸ’…), and it does exactly what it says on the tin: it shows you the shared libraries your programs need, but as a tree. iconic behaviour honestly πŸŽ€


🌸 SYNOPSIS 🌸

libtree [ option ]... [--] [ file ]...

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea πŸ“: libtree prints the shared libraries that each program or shared library on the command line needs, and it lays them out like a tree so you can actually see the structure instead of squinting at a wall of paths. main character energy fr fr πŸ‘‘

And by default? It hides certain common system libraries to prune the tree β€” so you're not drowning in noise you didn't ask for. lowkey thoughtful of it 🫢


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” prints usage. you know the drill, bestie ✨
  • --version β€” prints version info πŸ“Œ
  • -p, --path β€” shows the path of libraries instead of their soname
  • -v β€” shows the libraries that get skipped by default (the hidden ones! sneak peek πŸ‘€)
  • -vv β€” shows the dependencies of those libraries that get skipped by default
  • -vvv β€” shows the dependencies of libraries you've already encountered
  • --ldconf arg β€” path to a custom ld.so.conf or ld-elf.so.conf file
  • --max-depth n β€” limits library traversal to a depth of at most n. > ⚠️ heads up: this value cannot be larger than 32. it's a hard cap, no negotiating πŸ’€
  • -- β€” every argument after -- is treated as a path, not a flag. so if your filename is being dramatic and looks like an option, this is your escape hatch πŸšͺ

🌈 ENVIRONMENT 🌈

LD_LIBRARY_PATH can be used to provide additional search paths. extra places to look, extra chances to find your libs 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Harmen Stoppels <me@harmenstoppels.nl> β€” legend behaviour honestly πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯


okay that's the whole page, no cap. this was libtree(1), the Linux one, dated 2020-04-13 β€” go forth and inspect your dependencies, bestie, you've absolutely got this πŸ’–βœ¨πŸŽ€