I have a C++ application that I inherited, which consists of:
For direct dependencies;
ldd
Indirect/All dependencies;
ldd -r