Show all dynamic libraries required by executable

ldd is used to list the shared libraries required by programs. ldd should never be used with untrusted executables. Instead use objdump. ldd is available on Linux and Unix systems. For Windows users, ldd, is available through cygwin.


ldd /path/to/executable/filename
ldd -v /path/to/executable/filename

Print unused dependencies:

ldd -u /path/to/executable/filename


ldd [OPTION]... FILE...


      --help              print this help and exit
      --version           print version information and exit
  -d, --data-relocs       process data relocations
  -r, --function-relocs   process data and function relocations
  -u, --unused            print unused direct dependencies
  -v, --verbose           print all information
%d bloggers like this: