ldd

Display shared library dependencies of a binary. Do not use on an untrusted binary, use objdump for that instead. More information: <https://manned.org/ldd>.

Install

All systems
curl cmd.cat/ldd.sh
Debian Debian
apt-get install libc-bin
Ubuntu
apt-get install libc-bin
Arch Arch Linux
pacman -S glibc
image/svg+xml Kali Linux
apt-get install libc-bin
CentOS
yum install glibc-common
Fedora
dnf install glibc-common
Windows (WSL2)
sudo apt-get update sudo apt-get install libc-bin
Raspbian
apt-get install libc-bin

Display shared library dependencies of a binary. Do not use on an untrusted binary, use objdump for that instead. More information: <https://manned.org/ldd>.

  • Display shared library dependencies of a binary:
    ldd path/to/binary
  • Display all information about dependencies:
    ldd --verbose path/to/binary
  • Display unused direct dependencies:
    ldd --unused path/to/binary
  • Report missing data objects and perform data relocations:
    ldd --data-relocs path/to/binary
  • Report missing data objects and functions, and perform relocations for both:
    ldd --function-relocs path/to/binary

© tl;dr; authors and contributors