As j0h described, I was able to solve my problem. Here is what I have done:

  1. I read at Wikipedia about glibc. Glibc (better known as GNU C Library) has a fork for linux which is called libc6. Libc6 is available via apt.
  2. Run apt-get update to update the database.
  3. Use apt-cache policy libc6 to find out the installed version and the candidate version, whereas the installed version can be also shown with ldd --version.
  4. Install the new candidate version with apt-get install libc6
  5. Check the new version again by doing step 3 again to see your success.
Answer from eDeviser on askubuntu.com
Discussions

How do you upgrade glibc on Debian? - Stack Overflow
I heard I can do it using apt-get ... newest glibc version. ... Save this answer. ... Show activity on this post. I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror's answer: ... You need to exit out of your display manager by pressing CTRL+ALT+F1. Then you can stop x (slim) with sudo /etc/init.d/slim stop ... After updating libc6, restart ... More on stackoverflow.com
🌐 stackoverflow.com
How to update Glibc
Is there a way to update glibc without updating IPfire Core? I noticed some addons are complaining about wrong Glibc version. iperf -c 192.168.1.125 -d iperf: /lib/libc.so.6: version `GLIBC_2.38’ not found (required by iperf) Core180 announcement included updates to "glibc 2.38, GCC 13.2.0 ... More on community.ipfire.org
🌐 community.ipfire.org
4
0
February 5, 2024
Upgrade glibc_2.28 to 2.29
I’m on Rocky Linux release 8.6. A software “Cura 5.0” requires glibc_2.29 to running. Can I upgrade my current version of glibc? If so, how? More on forums.rockylinux.org
🌐 forums.rockylinux.org
2
0
October 14, 2022
Why Shouldn’t You Update Glibc? - Software & Applications - Spiceworks Community
I have been reading lately that you should not upgrade the glibc on Linux. But I figured that because glibc is a really strongly versioned library, anything built against the old glibc should be able to work with the new glibc. Right? If a broken glibc is the only issue for a system, too, why ... More on community.spiceworks.com
🌐 community.spiceworks.com
0
July 31, 2014
🌐
Linux Mint Forums
forums.linuxmint.com › board index › chat › chat about linux mint
Has anyone made any attempt to upgrade glibc? - Linux Mint Forums
January 27, 2024 - # unpackage tar -xzvf glibc-2.38.tar.gz ... directory where the new glibc is installed, "/opt/glibc2.38" (without quotes). Then, sudo ldconfig updates the system with the path of the new library....
Top answer
1 of 3
95

I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror's answer:

IMPORTANT

You need to exit out of your display manager by pressing CTRL+ALT+F1. Then you can stop x (slim) with sudo /etc/init.d/slim stop

(replace slim with mdm or lightdm or whatever)

Add the following line to the file /etc/apt/sources.list:

deb http://ftp.debian.org/debian experimental main

Should be changed to:

deb http://ftp.debian.org/debian sid main

Then follow the rest of perror's post:

Update your package database:

apt-get update

Install the glibc package:

apt-get -t sid install libc6-amd64 libc6-dev libc6-dbg

IMPORTANT

After updating libc6, restart the computer, and you should comment out or remove the sid source you just added (deb http://ftp.debian.org/debian sid main), or else you risk upgrading your whole distro to sid.

2 of 3
29

Your script contains errors as well, for example if you have dos2unix installed your install works but if you don't like I did then it will fail with dependency issues.

I found this by accident as I was making a script file of this to give to my friend who is new to Linux and because I made the scripts on windows I directed him to install it, at the time I did not have dos2unix installed thus I got errors.

here is a copy of the script I made for your solution but have dos2unix installed.

#!/bin/sh
echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg
echo "Please remember to hash out sid main from your sources list. /etc/apt/sources.list"

this script has been tested on 3 machines with no errors.

🌐
Liquid Web
liquidweb.com › home › how to update the glibc (gnu libc) in centos / red hat
How to Update the glibc (GNU libc) in CentOS / Red Hat | Liquid Web
December 3, 2024 - In this case, yum is the rpm-based package manager for both Red Hat and CentOS, -y, –assumeyes gives yes as an answer to any question which would be asked by running the command, update is for updating the package, and glibc is the package you’re updating!
🌐
UbuntuUpdates
ubuntuupdates.org › package › core › noble › universe › updates › glibc
UbuntuUpdates - Package "glibc" (noble 24.04)
glibc-source · locales-all · nscd · ← Previous 1 2 Next → · About - Send Feedback to @ubuntu_updates · google-chrome-beta 150.0.7871.13 · Packages changelogs Bugs & CVEs ·
Find elsewhere
🌐
IPFire
community.ipfire.org › add-ons
How to update Glibc - Add-Ons - IPFire Community
February 5, 2024 - Is there a way to update glibc without updating IPfire Core? I noticed some addons are complaining about wrong Glibc version. iperf -c 192.168.1.125 -d iperf: /lib/libc.so.6: version `GLIBC_2.38’ not found (required by iperf) Core180 announcement included updates to "glibc 2.38, GCC 13.2.0 & binutils 2.41.
🌐
Rocky Linux Forum
forums.rockylinux.org › rocky linux help & support
Upgrade glibc_2.28 to 2.29 - Rocky Linux Help & Support - Rocky Linux Forum
October 14, 2022 - I’m on Rocky Linux release 8.6. A software “Cura 5.0” requires glibc_2.29 to running. Can I upgrade my current version of glibc? If so, how?
🌐
Puppy Linux Discussion Forum
forum.puppylinux.com › board index › puppy linux main › house training › users help
How exactly do you update glibc? - Puppy Linux Discussion Forum
A newer version of Puppy is produced and it has a newer version of glibc. Had to be able to do that somehow! ------------------------------------------------------------------------------------------------------------------------------------ Note: To test I am using F96-CE_4 frugal install, on an ext4 formatted partition, and save folder. ... This tells you how for Linux, but we all know Puppy is not simply just Linux. How to update glibc https://tutorials.tinkink.net/en/linux/ ...
🌐
Endless OS
community.endlessos.com › english › help
Finding and updating glibc Version - #2 by Megachip - help - Endless OS Community
February 22, 2024 - megachip@endless:~/Downloads$ ./whatpulse-linux-5.6.3245_amd64.AppImage /tmp/.mount_whatpu9H8VGx/usr/bin/whatpulse: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/.mount_whatpu9H8VGx/u…
🌐
Wikipedia
en.wikipedia.org › wiki › Glibc
glibc - Wikipedia
March 20, 2026 - In 1994, the developers of the Linux kernel forked glibc. Their fork, "Linux libc", was maintained separately until around 1998. Because the copyright attribution was insufficient, changes could not be merged back to the GNU Libc. When the FSF released glibc 2.0 in January 1997, the kernel developers discontinued Linux libc due to glibc 2.0's superior compliance with POSIX standards.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
Upgrade glibc problem((Solved) / Pacman & Package Upgrade Issues / Arch Linux Forums
August 13, 2012 - sh-4.2# pacman -Syu --ignore glibc :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... warning: glibc: ignoring package upgrade (2.15-12 => 2.16.0-2) :: Replace grub2-bios with core/grub-bios?
🌐
SecLists
seclists.org › oss-sec › 2026 › q2 › 251
oss-sec: The GNU C Library security advisories update for 2026-04-28
April 28, 2026 - CVE-Id: CVE-2026-6238 Public-Date: 2026-04-11 Vulnerable-Commit: b43b13ac2544b11f35be301d1589b51a8473e32b (2.2) Notes: ====== Published advisories are available directly in the project git repository: https://sourceware.org/git/?p=glibc.git;a=tree;f=advisories;hb=HEAD
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › software › raspberry pi os
Possible to "upgrade" glibc without installing a whole new OS? - Raspberry Pi Forums
With most shared libraries, you can have multiple versions installed at the same time. Debian, and Linux in general, has had that for a long time. libc/glibc is a bit of a special case, as it has its own way of handling multiple ABI versions that is separate to the normal Linux way of handling it; it might still be possible.
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-from-scratch-13 › how-to-upgrade-glibc-4175599783-print
LinuxQuestions.org - How to upgrade glibc
July 19, 2021 - - - How to upgrade glibc (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-upgrade-glibc-4175599783/)
🌐
Debian
tracker.debian.org › pkg › glibc
glibc - Debian Package Tracker
[2026-01-01] Accepted glibc 2.41-12+deb13u1 (source) into proposed-updates (Debian FTP Masters) (signed by: Aurelien Jarno)
🌐
Spiceworks
community.spiceworks.com › software & applications
Why Shouldn’t You Update Glibc? - Software & Applications - Spiceworks Community
July 31, 2014 - I have been reading lately that you should not upgrade the glibc on Linux. But I figured that because glibc is a really strongly versioned library, anything built against the old glibc should be able to work with the new…
🌐
Red Hat
access.redhat.com › solutions › 38634
What glibc version is shipped with a particular Red Hat Enterprise Linux? - Red Hat Customer Portal
December 2, 2025 - We need a later GNU C library for our project but we cannot find it from Red Hat Enterprise Linux. Is there any document about glibc version information? ... A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more. ... Here are the common uses of Markdown. ... Are you sure you want to update a translation?
🌐
Linux From Scratch
linuxfromscratch.org › lfs › view › development › chapter08 › glibc.html
8.5. Glibc-2.43
If upgrading on a LFS system prior to 12.0 (exclusive), install Libxcrypt following Section 8.28, “Libxcrypt-4.5.2.” In addition to a normal Libxcrypt installation, you MUST follow the note in Libxcrypt section to install libcrypt.so.1* (replacing libcrypt.so.1 from the prior Glibc installation).
Top answer
1 of 3
23

Check it is actually needed

Firstly check the python application as it could be out of date and is probably misreading the glibc version. CentOS shows the base version as installed and is patched to keep up with changes and it could just be a case of fixing the version that is being looked for in the code as a quick fix, but if the application is being actively developed you need to let the developers know or fork it for yourself if you can.

An up to date glibc on CentOS 7 should be 2.17-196.el7_4.2

If it is needed, Containerise

If it's absolutely necessary to run this application, the official RHEL approach would be to containerize, but you would still need to provide a working glibc, which wouldn't be possible with stock CentOS 7.

As a last resort, install glibc in a nonstandard location

If this isn't viable, and as an absolute last resort, it is possible to install a newer version of glibc than 2.18 as that is 9 years old now and glibc has been updated for several vulnerabilities and I'm not sure off the top of my head if it will build with the version of make in CentOS 7, but any newer version should work as follows:

  • This can potentially affect the functionality of your computer so make sure you know what you are doing

You can build the version of glibc you require elsewhere on your server and add it to LD_LIBRARY_PATH for the application. Note this must only be done for the application only.

wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxvf glibc-2.18.tar.gz
cd glibc-2.18
mkdir build
cd build
../configure --prefix=/opt/glibc-2.18
make -j4
sudo make install

Then to run a binary you need to use patchelf to update its interpreter

patchelf --set-interpreter /opt/glibc-2.18/lib/ld-linux-x86-64.so.2 program_you_are_running

And you need to enable it to find the new glibc library, either by

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib

Or you can use patchelf to update the binary's rpath (you can combine this with the previous pathelf command)

patchelf --set-rpath /opt/glibc-2.18/lib:/usr/lib64 program_you_are_running

If you change LD_LIBRARY_PATH don't export it for the whole system because all the binaries unmodified by patchelf will segfault.

/opt is the standard place to install third-party applications and libraries but you can use any path away from the system paths.

2 of 3
4

In the end,I did not have to upgrade GLIBC. The gdc-client tool I downloaded through R seemed to be for Ubuntu and not CentOS, though I did it on CentOS 7. I then downloaded the gdc-client for CentOS and it worked fine.