Determine what version of glibc is installed on linux

chris (2007-06-04 15:26:34)
0 replies
To get the version of glibc installed on a linux box, you can just point directly at the libc shared object file and run it. The output will look something like:
chris@snackerjack-lx:/usr/src$ sudo /lib/
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 3.4.6 (Ubuntu 3.4.6-1ubuntu2).
Compiled on a Linux 2.6.11 system on 2007-02-02.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        linuxthreads-0.10 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
chris@snackerjack-lx:/usr/src$ file /lib/
/lib/ symbolic link to `'
chris@snackerjack-lx:/usr/src$ file /lib/
/lib/ ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, stripped

The first line there says 'GNU C Library stable release version 2.3.6' this means that the system is running glibc version 2.3.6