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
๐ŸŒ
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 ...
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
๐ŸŒ
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
๐ŸŒ
Lindevs
lindevs.com โ€บ check-glibc-version-in-linux
Check glibc Version in Linux | Lindevs
June 29, 2022 - The glibc version can be checked by running its binary. First, find out the path of libc.so as follows: ... GNU C Library (Ubuntu GLIBC 2.31-0ubuntu9.7) stable release version 2.31.
๐ŸŒ
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.
๐ŸŒ
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 - The easiest way is to use ldd command which comes with glibc and in most cases it will print the same version as glibc: $ ldd --version ldd (Ubuntu GLIBC 2.30-0ubuntu2.1) 2.30
๐ŸŒ
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....
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
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 - Running rpm -qa | grep glibc will list all glibc-related packages and their versions. For even more detail on the main glibc package, you can use rpm -qi glibc. Sometimes, you might encounter a "command not found" error.
๐ŸŒ
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.:
๐ŸŒ
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: