How to check the version of a library in Linux?

You can use the following commands to view the versions of libraries installed on a Linux system:

  1. Dynamic Linker Loader
ldd /path/to/executable
  1. dpkg is a package management system for Debian-based operating systems.
dpkg -l | grep <library-name>
  1. revolutions per minute
rpm -qa | grep <library-name>
  1. For certain libraries, you can directly view the version information in the library files themselves. For example, for the libc library files, you can use the following command to check the version:
strings /lib/libc.so.6 | grep GLIBC

Please note that the in the command above needs to be replaced with the name of the specific library you are trying to find.

广告
Closing in 10 seconds
bannerAds