Determine what version of glibc is installed on linux

chris (2007-06-04 15:26:34)
3828 views
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/libc.so.6
Password:
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
PARTICULAR PURPOSE.
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
        BIND-8.2.3-T5B
        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:
http://www.gnu.org/software/libc/bugs.html.
chris@snackerjack-lx:/usr/src$ file /lib/libc.so.6
/lib/libc.so.6: symbolic link to `libc-2.3.6.so'
chris@snackerjack-lx:/usr/src$ file /lib/libc-2.3.6.so
/lib/libc-2.3.6.so: 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

christo
comment