Different Commands to find out all shared libraries used by application in Linux

'ldd' Linux command is used to print all shared library dependencies.

Syntax: ldd <executable_name>

Some versions of ldd will execute the application in order to get dependencies information. Safer alternative is to use:

objdump -p <executable_name> | grep NEEDED

Another way is to use readelf.

readelf -d <executable_name> | grep NEEDED

Note that libraries depends on other libraries, so you need to find their dependencies.



Comments

Popular posts from this blog

Appending and Prepending in Yocto - +=, =+ vs .=, =.

Connecting Serial ports of two Ubuntu VMWare Virtual Machines

Linux Commands for Hardware Info - lshw, lspci, lsdev, lscpu, lsblk, lsusb