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
🌐
Linux Questions
linuxquestions.org › questions › linux-software-2 › how-to-check-glibc-version-263103
how to check glibc version? - Linux
December 6, 2004 - hi, any method to check glibc version using in my linux box? anyone have idea on this? thanks, jim
Discussions

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
🌐 unix.stackexchange.com
August 23, 2019
How to check glibc version?

ldd --version

More on reddit.com
🌐 r/MXLinux
4
3
September 27, 2022
linux - 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
🌐 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
🌐 r/linux4noobs
22
7
April 7, 2024
🌐
LinuxConfig
linuxconfig.org › home › check libc version
Check and Update libc Version on Linux
September 22, 2025 - The process for checking your installed version of libc will be the same regardless of your Linux distro. Simply use the ldd command as seen below. $ ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35 ...
🌐
DEV Community
dev.to › bitecode › how-to-get-glibc-version-c-lang-26he
How to get glibc version - C Lang - DEV Community
April 27, 2020 - We can also use the libc.so to print out version. First we need to find out the path of libc.so. You can use ldd to a binary to find out the libc.so: $ ldd `which ls` | grep libc libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f918034d000) ...
🌐
Lindevs
lindevs.com › check-glibc-version-in-linux
Check glibc Version in Linux | Lindevs
June 29, 2022 - The ldd command can be used to check version of the glibc.
🌐
Benohead
benohead.com › home › linux: check the glibc version
Linux: Check the glibc version - Benohead's Software Blog
January 28, 2015 - Linux: check argument count, display usage, check user · After unpacking, receive this message: “/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26′ not found (required by /home/john/Downloads/waterfox/libmozsandbox.so)” · But ldd –version returns this: “ldd (Debian GLIBC 2.28-10) 2.28” ·
🌐
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.
Find elsewhere
🌐
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.
🌐
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.
🌐
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....
🌐
UMA Technology
umatechnology.org › home › how to check glibc version in linux
How to Check Glibc Version in Linux - UMA Technology
March 1, 2026 - Checking the glibc version is straightforward and can be achieved through multiple methods, ranging from simple command-line queries to examining version files. The most common approach involves using the ldd command, which displays the version of glibc linked to shared libraries.
🌐
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.
🌐
N-able
documentation.n-able.com › remote-management › userguide › Content › linux_v2_dependencies.htm
Package Dependencies
To view whether glibc is installed on the server and its version number run the ldd command with the version switch. ... Where glibc is not discovered on the device, the following command installs the package. This requires root to install. ... To check whether the computer is using DNF or ...
🌐
TechBloat
techbloat.com › home › how to check glibc version
How to Check Glibc Version - TechBloat
March 1, 2026 - Use dpkg -s libc6 | grep Version on Debian-based systems. Use rpm -q glibc on RPM-based systems. These commands provide a quick, reliable way to check your system’s C library version, helping ensure compatibility and aiding in system management tasks.
🌐
Linode
linode.com › docs › guides › patching-glibc-for-the-ghost-vulnerability
Upgrading glibc for the GHOST Vulnerability | Linode Docs
May 3, 2021 - 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 ...
🌐
Lindevs
lindevs.com › check-glibc-version-required-by-binary-file-on-linux
Check glibc Version Required by Binary File On Linux | Lindevs
March 27, 2025 - To determine the required glibc versions for a binary file, we can use a combination of objdump, grep, and sed commands. For example, to check the required glibc versions for the mkdir command located in /usr/bin directory, run:
🌐
Oreate AI
oreateai.com › blog › unlocking-your-linux-system-a-friendly-guide-to-checking-your-glibc-version › 4d40ad7b9a24cbe0325197722a95765d
Unlocking Your Linux System: A Friendly Guide to Checking Your Glibc Version - Oreate AI Blog
February 25, 2026 - This is often the go-to command for many, and for good reason. Open up your terminal, type ldd --version, and hit Enter. You'll likely see output similar to this: ldd (GNU libc) 2.31.