Use ldd --version:
Copy$ ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
...
You can also run libc itself:
Copy$ /lib/libc.so.6
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
...
Answer from John on Stack Overflow Top answer 1 of 9
130
Use ldd --version:
Copy$ ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
...
You can also run libc itself:
Copy$ /lib/libc.so.6
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
...
2 of 9
60
Write a test program (name it for example glibc-version.c):
Copy#include <stdio.h>
#include <stdlib.h>
#include <gnu/libc-version.h>
int main(int argc, char *argv[]) {
printf("GNU libc version: %s\n", gnu_get_libc_version());
exit(EXIT_SUCCESS);
}
and compile it with the gcc-4.4 compiler:
Copygcc-4.4 glibc-version.c -o glibc-version
When you execute ./glibc-version the used glibc version is shown.
compiling - Check the actual glibc version used - Unix & Linux Stack Exchange
I want check the glibc version used by toolchain to build code for the target system (ARM). In toolchain directory I tried strings /sysroot/lib/libc.so.6 | grep GLIBC the output is GLIBC_2.4 GL... More on unix.stackexchange.com
How to check glibc version?
ldd --version
More on reddit.comlinux - How can you determine installed versions of the glibc libraries? - Stack Overflow
I'm working with an embedded Linux deployment and am using a cross compiler tool chain that doesn't compile I2C library function calls. How do I determine the precise versions of the libraries on ... More on stackoverflow.com
Running into a version `GLIBC_2.38' not found error
The program is too new for the distro. You're correct not to just "upgrade glibc". This is an integral part of the OS and difficult/impossible to do reliably. You could try running the program in a Distrobox using a distro which has a newer glibc, probably Fedora or Arch will work. You could wait until Kubu 24.04 and try there. It's already April so you could probably install the beta now and update to the full version when it comes out in a few weeks. More on reddit.com
Xmodulo
xmodulo.com โบ check-glibc-version-linux.html
How to check glibc version on Linux
July 9, 2020 - A simple command-line to check the version of the GNU C library is as follows. ... In this example, the version of glibc is 2.19.
UMA Technology
umatechnology.org โบ home โบ how to check glibc version in linux
How to Check Glibc Version in Linux - UMA Technology
March 1, 2026 - This command displays the installed Glibc version alongside other relevant information. Alternatively, you can use: rpm -q glibc # for RPM-based distros like CentOS or Fedora ยท dpkg -l | grep libc6 # for Debian-based distros like Ubuntu
TechBloat
techbloat.com โบ home โบ how to check glibc version
How to Check Glibc Version - TechBloat
March 1, 2026 - Before updating, verify your existing ... distributions provide Glibc updates through their package management system: Debian/Ubuntu: Run sudo apt update followed by sudo apt upgrade libc6....
OpenGenus
iq.opengenus.org โบ find-glibc-version
Find glibc version in your system
We present 3 different ways to identify compile time and run time version of glibc. The version of glibc has two components: Major version and Minor version.
Linode
linode.com โบ docs โบ guides โบ patching-glibc-for-the-ghost-vulnerability
Upgrading glibc for the GHOST Vulnerability | Linode Docs
May 3, 2021 - To check the version of glibc on your system, run the following command. In the output, look for the line beginning with Version:: # aptitude show libc6 Package: libc6 State: installed Automatically installed: no Multi-Arch: same Version: 2.13-38+deb7u6 Priority: required Section: libs Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: amd64 Uncompressed Size: 9,687 k Depends: libc-bin (= 2.13-38+deb7u6), libgcc1 Suggests: glibc-doc, debconf | debconf-2.0, locales Conflicts: prelink (<= 0.0.20090311-1), tzdata (< 2007k-1), tzdata-etch Breaks: locales (< 2.13), locales-all (< 2.13), lsb-core (<= 3.2-27), nscd (< 2.13) Replaces: libc6-amd64 Provides: glibc-2.13-1 Description: Embedded GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system.
Blogger
tuxthink.blogspot.com โบ 2012 โบ 03 โบ finding-out-glibc-version.html
Linux World: Finding out the glibc version
1. Open a terminal and run Which ... which would work if are running debian based systems is to open the synaptic package manager and go to the package libc-bin and see the installed version number in front of it....
Gordano
gordano.com โบ home โบ knowledge base โบ gms โบ how do i tell which version of glibc i have installed on my system?
How do I tell which version of glibc I have installed on my system? โ GMS
On non RPM based Linux systems, please open a command prompt and change to the /lib directory then type "ls -al /lib/libc*". This will return a list of glibc files on your system including version numbers.
Reddit
reddit.com โบ r/mxlinux โบ how to check glibc version?
r/MXLinux on Reddit: How to check glibc version?
September 27, 2022 -
How to check what glibc version i have installed? If i run dpkg -l | grep glibc i don't get any output. I am using MX-21.2.1_x64 Wildflower.
Cylab
cylab.be โบ blog โบ 388 โบ a-solution-to-version-glibc-2xx-not-found
A Solution to Version GLIBC_2.XX Not Found | cylab.be
January 15, 2025 - In this case, the binary my-binary needs glibc version 2.XX, but your system either has another version or none at all. You can check whether the program is linked dynamically or statically using the ldd command.
Narkive
ubuntu-users.narkive.com โบ dYoKFRqi โบ how-to-know-the-glibc-version-and-update-it-in-ubuntu
how to know the GLIBC version and update it in ubuntu?
Source: eglibc Version: 2.11.1-0ubuntu7.6 Replaces: belocs-locales-bin Provides: glibc-2.10-1 Below is my message: Package: libc6 Priority: required Section: libs Installed-Size: 9336 Maintainer: Ubuntu Core developers <ubuntu-devel-discuss at lists.ubuntu.com> Original-Maintainer: GNU Libc Maintainers <debian-glibc at lists.debian.org> Architecture: i386 Source: eglibc Version: 2.10.1-0ubuntu18 Replaces: belocs-locales-bin Provides: glibc-2.10-1 But when I try to configure lttv it shows the error below, should I miss any setting, such path, in my ubuntu? checking for GLIB - version >= 2.4.0...
Benohead
benohead.com โบ home โบ linux: check the glibc version
Linux: Check the glibc version - Benohead's Software Blog
January 28, 2015 - Of course there may be systems where the file name itself doesnโt give you the glibc version but just as shown above with /lib64/libc.so.6 you can call the so file with the โversion to get its version information e.g.:
Top answer 1 of 5
23
For glibc:
/lib/libc.so.6
Sounds maybe strange to run a so file but should print out version information in this case
For the kernel version use uname
For the binutils parsing the output of ld --versionmight yield what you expect, the same for gcc --version. This is a bit tedious but I do not know another way.
2 of 5
6
$ ldd --version
ldd (GNU libc) 2.39