Check Glibc Version In Linux - Lindevs

Menu
    • Sign In
Check glibc Version in Linux

The GNU C Library also known as glibc, is an open-source implementation of the C standard library. Finding out which version of the glibc is installed in the system can be useful when compiling binaries.

This tutorial explains how to check glibc version in Linux.

1. ldd command

The ldd command can be used to check version of the glibc. In most cases the following command prints the same version as glibc:

ldd --version

Output example:

ldd (Ubuntu GLIBC 2.31-0ubuntu9.7) 2.31

2. libc.so binary

The glibc version can be checked by running its binary. First, find out the path of libc.so as follows:

ldd `which cat` | grep libc

Output example:

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3e59b17000)

Now simply run libc.so binary:

/lib/x86_64-linux-gnu/libc.so.6

Output example:

GNU C Library (Ubuntu GLIBC 2.31-0ubuntu9.7) stable release version 2.31.
  • Previous
  • Next

Related

Install MariaDB Inside Docker Container in Linux Install MariaDB Inside Docker Container in Linux MariaDB Server is a cross-platform relational database that enables to access data using Structured Query... Run SQLFluff Inside Docker Container on Linux Run SQLFluff Inside Docker Container on Linux SQLFluff is an open-source SQL linter and formatter designed to enforce SQL style consistency and... Install Netron Inside Docker Container on Linux Install Netron Inside Docker Container on Linux Netron is an application for visualizing and inspecting neural network models. It supports various frameworks...

Leave a Comment

Cancel reply

Your email address will not be published.

Name *

Email *

Save my name, email in this browser for the next time I comment.

Buy Me a Coffee

Recent Posts

  • Get Latest Tag Name in Git
  • Get Current Branch Name in Git
  • Replace Spaces with Underscores in Filenames on Linux
  • Group Adjacent Range Elements with views::chunk_by in C++23
  • Modify String In-Place with resize_and_overwrite in C++23

Archives

  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Tag » How To Check Glibc Version