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.
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
Post a Comment