LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ldd

prints the shared objects required by each program or shared object

TLDR

Display shared library dependencies
$ ldd /path/to/binary
copy
Display all information about dependencies
$ ldd -v /path/to/binary
copy
Display unused direct dependencies
$ ldd -u /path/to/binary
copy
Report missing objects and perform data relocations
$ ldd -d /path/to/binary
copy
Report missing objects and perform function relocations
$ ldd -r /path/to/binary
copy

SYNOPSIS

ldd [option]... file...

DESCRIPTION

ldd prints the shared objects (shared libraries) required by each program or shared object on the command line. It identifies dependencies and displays their locations along with load addresses.

PARAMETERS

-v, --verbose

Print all information including symbol versioning
-u, --unused
Print unused direct dependencies
-d, --data-relocs
Perform data relocations and report missing objects (ELF only)
-r, --function-relocs
Perform data and function relocations and report missing objects (ELF only)
--version
Display version information
--help
Display usage information

INSTALL

sudo apt install libc-bin
copy
sudo apk add musl-utils
copy

CAVEATS

Never run ldd on untrusted executables as it may execute arbitrary code. For untrusted binaries, use: objdump -p /path/to/program | grep NEEDED

HISTORY

ldd is part of the GNU C Library (glibc). It works by setting the LD_TRACE_LOADED_OBJECTS environment variable and invoking the dynamic linker.

SEE ALSO

ld.so(8), ldconfig(8), objdump(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid