/home/bill/System_maintenance/ldd - show library contents.txt $ ldd /opt/OpenBLAS/* ... | sed -e '/^[^\t]/ d; s/^\t\(.* => \)\?\([^ ]*\) (.*/\2/g' | sort | uniq -c static (*.a) and shared (*.so) libraries NAME ldd - print shared library dependencies SYNOPSIS ldd [option]... file... DESCRIPTION ldd prints the shared libraries required by each program or shared library specified on the command line. Security In the usual case, ldd invokes the standard dynamic linker (see ld.so(8)) with the LD_TRACE_LOADED_OBJECTS environment variable set to 1, which causes the linker to display the library dependencies. Be aware, how‐ ever, that in some circumstances, some versions of ldd may attempt to obtain the dependency information by directly executing the program. Thus, you should never employ ldd on an untrusted executable, since this may result in the execution of arbitrary code. A safer alternative when dealing with untrusted executables is: $ objdump -p /path/to/program | grep NEEDED . 21Jun2017 12:53 OOPS! use ojbdump instead? 01Aug2017 09:39 for OPM-Flow library dependencies : see "/home/bill/OPM concepts/Turbulence notes.txt" $ cd "/media/bill/d4651fa9-d9e7-472f-a939-37159801244b/usr/lib/x86_64-linux-gnu/" $ ldd /media/bill/d4651fa9-d9e7-472f-a939-37159801244b/usr/lib/x86_64-linux-gnu/libopm*.04 full version sorted & unique : $ ldd /media/bill/d4651fa9-d9e7-472f-a939-37159801244b/usr/lib/x86_64-linux-gnu/libopm*.04 | sed -e '/^[^\t]/ d; s/^\t\(.* => \)\?\([^ ]*\) (.*/\2/g' | sort | uniq -c # enddoc