How to Check the glibc Version on CentOS

Posted on by J. Mays
Reading Time: < 1 minute
Pre-Flight Check
  • These instructions are intended specifically for checking the installed version of glibc.
  • I’ll be working from a Liquid Web Core Managed CentOS 6 and CentOS 7 server, and I’ll be logged in as root.

Using ldd

ldd --version

This should return a result similar to:

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
Written by Roland McGrath and Ulrich Drepper.

In this case, version 2.17 is installed.

Using yum

yum list glibc

This should return a result similar to:

Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
3 packages excluded due to repository priority protections
Installed Packages
glibc.x86_64        2.17-55.el7_0.3          @system-updates-released
Available Packages
glibc.i686          2.17-55.el7_0.3          system-updates-released

In this case, 2.17-55.el7_0.3 is the package installed.

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

What is Bare Metal Programming?

Read Article

Useful Features in cPanel for Your Sites

Read Article

How to Clone a Drupal Site to Another Domain

Read Article

Accessing Man Pages on Ubuntu 16.04 LTS

Read Article

What is VMware Fusion?

Read Article