Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justdoit0823/dd74899105c49b8518f3e5d8b62870ba to your computer and use it in GitHub Desktop.
Save justdoit0823/dd74899105c49b8518f3e5d8b62870ba to your computer and use it in GitHub Desktop.
List all libraries used by executables on linux.

Command

  • ldd
lddb executable_file

In some circumstances, some versions of ldd may attempt to obtain the dependency information by directly executing the program.

  • objdump
objdump -p executable_file | grep NEEDED

objdump is the safer choice.

Reference

  • ldd(1)

  • objdump(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment