简体   繁体   中英

Determine minor version of library on Linux

How can I know minor version of a library on Linux.

For example on my Linux machine I have libodbc.so.2 and I need to know the exact version of the library, like 2.3.0 or 2.3.2.

Is there some Linux command that I can run on the library to get its version? I tried ./libodbc.so.2 -v but got Segmentation fault.

ldd should be the tool of your choice. That gives you the shared library actually linked.

Refer this post .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM