How To Find Library Version On Linux Mac Unix by Command line

November 17, 2011 | By Regaz | Filed in: Uncategorized.

If you need to find Version Info about the Libraries associated to a Package on Mac.

Take the Time of Reading and Understanding Getting a Clear Insight

  1. You perform from Terminal the following Commands:

    otool -L /path/To/Your/bin/Package

    In the Output you find a List of Libraries Associated with the Relative Version.
    Example:

    otool -L /usr/local/bin/curl

    Output:

    /usr/local/bin/curl:
    /usr/local/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 7.0.0)
    /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.2.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.7)

    So if you need only to know Which is the Library Version before you need to find an Associated Package…
    On Unix and Linux you can Use Instead, the ldd Command.

    ldd /path/To/Your/bin/Package

To Find Extra Indications Look this Guide:
Climb the InfoWall

Debian, Linux

Sviluppo Siti Web

.


Tags: , , , , , , , ,