Check Glibc Version In Linux - Lindevs
Maybe your like
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 --versionOutput example:
ldd (Ubuntu GLIBC 2.31-0ubuntu9.7) 2.312. 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 libcOutput 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.6Output example:
GNU C Library (Ubuntu GLIBC 2.31-0ubuntu9.7) stable release version 2.31.- Previous
- Next
Related
Leave a Comment
Cancel replyYour email address will not be published.
Name *
Email *
Save my name, email in this browser for the next time I comment.
Buy Me a CoffeeRecent 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
-
Find Glibc Version In Your System - OpenGenus IQ
-
How To Get Glibc Version - C Lang
-
Check Glibc Version For A Particular Gcc Compiler - Stack Overflow
-
How To Check Glibc Version?
-
Linux: Check The Glibc Version - Benohead's Software Blog
-
How To Check Glibc Version On Linux - Xmodulo
-
CentOS /RHEL: How To Check GNU Libc Version - OSETC TECH
-
How Do I Tell Which Version Of Glibc I Have Installed On My System?
-
How To Check Glibc Version In Linux - Alfredo's Memo Wiki
-
The GNU C Library
-
How To Check The Glibc Version In Fedora - Liquid Web
-
How To Check The Glibc Version On CentOS - Liquid Web
-
Prints The Various Glibc Versions Required By An Executable · GitHub
-
Check The Actual Glibc Version Used - Unix & Linux Stack Exchange