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
🌐
Oracle Community
community.oracle.com › customerconnect › discussion › 834424 › oracle-linux-how-to-update-the-glibc-package-on-oracle-linux-8
Oracle Linux: How to Update the glibc Package on Oracle Linux 8 — Cloud Customer Connect
January 2, 2025 - Ensure the glibc package is updated correctly on Oracle Linux 8. To access the appropriate version of the glibc package, enable the following repositories based on your system requirements:
Discussions

linux - How to upgrade glibc from version 2.12 to 2.14 on CentOS? - Stack Overflow
Isn't a pre-build version of the ... on my Linux distro better ? 2019-04-18T14:55:08.097Z+00:00 ... @Accountantم CentOS 6 (even if OP upgraded to 6.10) has repositories that only go to 2.12. There is no pre-build version of the glibc that has been tested for 2.14 on this arch. Techie didn't read the question, that's why it's downvoted. Updating anything is ... More on stackoverflow.com
🌐 stackoverflow.com
How do I update GLIBC in ubuntu?

How do I update it to 2.32?

Ideally, you don't. glibc is the most central library on the system. Basically everything depends on it. If something goes wrong during the update or if there is an unexpected incompatibility, the whole system breaks and you won't even be able to use the most basic tools to fix it.

Instead, you could upgrade your whole system to a newer version of Ubuntu. Or you could run a newer version of Ubuntu in a chroot/container/VM. Or you could complie openmw-validator for your version of glibc (assuming its source code is available and can be compiled).

More on reddit.com
🌐 r/linux4noobs
2
4
July 29, 2021
How do you upgrade glibc on Debian? - Stack Overflow
After running this my server libc got updated to 2.19 and everything got back to normal :-) 2014-11-20T02:13:20.597Z+00:00 ... Save this answer. ... Show activity on this post. If you need to upgrade glibc, the safest solution may be to upgrade your Linux distribution, since most software depends ... More on stackoverflow.com
🌐 stackoverflow.com
How do I update GLIBC?
Your best bet would probably be to run do-release-upgrade to upgrade to Ubuntu 24.04. It probably not feasible to upgrade just glibc because it's a dependency of basically everything. More on reddit.com
🌐 r/Ubuntu
13
2
July 24, 2025
🌐
Devtuts
devtuts.net › en › linux › how-to-update-glibc.html
How to update glibc
June 15, 2024 - # Debian / Ubuntu / Kali sudo apt-get update && sudo apt-get install --reinstall libc6 # RHEL / CentOS / Rocky / AlmaLinux sudo yum reinstall glibc # or: sudo dnf reinstall glibc # openSUSE / SLES sudo zypper in --force glibc · If a newer release is only available in a newer distribution version, ...
Top answer
1 of 4
91

You cannot update glibc on Centos 6 safely. However you can install 2.14 alongside 2.12 easily, then use it to compile projects etc. Here is how:

mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
2 of 4
14

I found this source very useful and doesn't has much SEO. It lists the most common errors you might encounter while using @UnitasBrooks great answer and I'm afraid it gets lost in the future.

This is the link to the original post

I will copy, paste it here (I faced the last problem and it fixed it, however I didn't try all the problems/solutions listed and you try it on your own risk)


Glibc installation

The GNU C Library, commonly known as glibc, is the GNU Project's implementation of the C standard library. My environment required glibc (version 2.14) and it took a bit of fiddling to get it to work, so hopefully this will save you some time.

0.Glibc Installation Dependencies

Bash: sh
Binutils: ar, as, ld, ranlib, readelf
Diffutils: cmp
Fileutils: chmod, cp, install, ln, mknod, mv, mkdir, rm, touch
Gcc: cc, cc1, collect2, cpp, gcc
Grep: egrep, grep
Gzip: gzip
Make: make
Gawk: gawk
Sed: sed
Sh-utils: date, expr, hostname, pwd, uname
Texinfo: install-info, makeinfo
Textutils: cat, cut, sort, tr

1.Download installation package

http://www.gnu.org/software/libc/ for all versions.
http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz for version 2.14.

2.Compile and install

To avoid disturb current environment, compile and install this version separately by configuring prefix.

[root@localhost ~]# tar xvf glibc-2.14.tar.gz
[root@localhost ~]# cd glibc-2.14
[root@localhost glibc-2.14]# mkdir build
[root@localhost glibc-2.14]# cd ./build
[root@localhost build]# ../configure --prefix=/opt/glibc-2.14
[root@localhost build]# make -j4
[root@localhost build]# make install
[root@localhost build]# export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH

3.To check glibc versions installed

root@localhost:~/intel64/runtime/glibc$ strings libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_PRIVATE

4.Compiling errors

Error:

make[1]: *** No rule to make target /mnt/lfs/sourcenew/glibc-build/Versions.all', needed by/mnt/lfs/sourcenew/glibc-build/abi-versions.h'. Stop.

Solution:

sudo apt-get install gawk
sudo apt-get install texinfo

Error:

make[2]: *** [/mnt/lfs/sources/glibc-build/misc/syslog.o] Error 1

Solution:

make clean
make -j2 CFLAGS="-U_FORTIFY_SOURCE -O2 -fno-stack-protector"

Error:

/Downloads/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory

Solution:

:/opt/glibc-2.14/etc$ sudo sh -c "echo '/usr/local/lib' >> ld.so.conf" 
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
🌐
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! Assuming your server needed a new version of glibc and was thus upgraded, reboot your server to complete the process! ... Join our community today. ... WooCommerce Tutorials 2 min read Apache Error: Premature End of Script Headers J. Mays · WooCommerce Tutorials 2 min read How to Backup Your Website in cPanel Ronald Caldwell · WooCommerce Tutorials 6 min read How to Install and Configure Linux Malware Detect in CentOS 7 Michael Flores Feliz
🌐
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/)
🌐
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 - Note that a given version of glibc offers an ascending compatibility and can be used by programs requiring a lower version: ... strings /usr/lib/x86_64-linux-gnu/libc.so.6|grep GLIBC_ GLIBC_2.2.5 GLIBC_2.2.6 GLIBC_2.3 GLIBC_2.3.2 GLIBC_2.3.3 GLIBC_2.3.4 GLIBC_2.4 GLIBC_2.5 GLIBC_2.6 GLIBC_2.7 ...
Find elsewhere
🌐
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/ ...
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.

🌐
Reddit
reddit.com › r/ubuntu › how do i update glibc?
r/Ubuntu on Reddit: How do I update GLIBC?
July 24, 2025 -

I’m currently using GLIBC 2.35 on Ubuntu 22.04, and I want to update it (for gaming purposes).

I’m also aware that updating it isn’t as simple as typing:

“sudo apt update GLIBC yada yada”

or whatever, so I’m not entirely sure how to update it properly without bricking my install.

Any ideas on what to do?

🌐
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?
🌐
Jertype
jertype.com › upgrading-glibc
Using newer libc on old Linux distributions - Jertype
April 21, 2018 - If you take a look around, you’ll find that you can build a newer version of glibc. Here’s some instructions for doing a side-by-side installation of glibc 2.14 from Stack Overflow: mkdir ~/glibc_install; cd ~/glibc_install wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz tar zxvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure --prefix=/opt/glibc-2.14 make -j4 sudo make install
Top answer
1 of 1
5

You can use dnf to upgrade it - dnf update -y glibc.

Full example from a container on my machine:

[root@0df679e04d17 /]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.2 (Ootpa)
[root@0df679e04d17 /]# rpm -qa glibc
glibc-2.28-101.el8.x86_64
[root@50a1768b4fcf /]# dnf update glibc
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                                                                                                       1.1 MB/s | 827 kB     00:00
Red Hat Universal Base Image 8 (RPMs) - AppStream                                                                                                                                    3.7 MB/s | 3.2 MB     00:00
Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder                                                                                                                            138 kB/s |  29 kB     00:00
Dependencies resolved.
=====================================================================================================================================================================================================================
 Package                                                     Architecture                                Version                                             Repository                                         Size
=====================================================================================================================================================================================================================
Upgrading:
 glibc                                                       x86_64                                      2.28-211.el8                                        ubi-8-baseos                                      2.2 M
 glibc-common                                                x86_64                                      2.28-211.el8                                        ubi-8-baseos                                      1.0 M
 glibc-minimal-langpack                                      x86_64                                      2.28-211.el8                                        ubi-8-baseos                                       63 k
Installing weak dependencies:
 glibc-gconv-extra                                           x86_64                                      2.28-211.el8                                        ubi-8-baseos                                      1.5 M
 glibc-langpack-en                                           x86_64                                      2.28-211.el8                                        ubi-8-baseos                                      825 k

Transaction Summary
=====================================================================================================================================================================================================================
Install  2 Packages
Upgrade  3 Packages

Total download size: 5.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): glibc-minimal-langpack-2.28-211.el8.x86_64.rpm                                                                                                                                401 kB/s |  63 kB     00:00
(2/5): glibc-langpack-en-2.28-211.el8.x86_64.rpm                                                                                                                                     2.5 MB/s | 825 kB     00:00
(3/5): glibc-common-2.28-211.el8.x86_64.rpm                                                                                                                                          1.7 MB/s | 1.0 MB     00:00
(4/5): glibc-gconv-extra-2.28-211.el8.x86_64.rpm                                                                                                                                     1.6 MB/s | 1.5 MB     00:00
(5/5): glibc-2.28-211.el8.x86_64.rpm                                                                                                                                                 1.8 MB/s | 2.2 MB     00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                4.0 MB/s | 5.6 MB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                             1/1
  Installing       : glibc-gconv-extra-2.28-211.el8.x86_64                                                                                                                                                       1/8
  Running scriptlet: glibc-gconv-extra-2.28-211.el8.x86_64                                                                                                                                                       1/8
  Upgrading        : glibc-common-2.28-211.el8.x86_64                                                                                                                                                            2/8
  Running scriptlet: glibc-2.28-211.el8.x86_64                                                                                                                                                                   3/8
  Upgrading        : glibc-2.28-211.el8.x86_64                                                                                                                                                                   3/8
  Running scriptlet: glibc-2.28-211.el8.x86_64                                                                                                                                                                   3/8
  Installing       : glibc-langpack-en-2.28-211.el8.x86_64                                                                                                                                                       4/8
  Upgrading        : glibc-minimal-langpack-2.28-211.el8.x86_64                                                                                                                                                  5/8
  Cleanup          : glibc-minimal-langpack-2.28-101.el8.x86_64                                                                                                                                                  6/8
  Cleanup          : glibc-2.28-101.el8.x86_64                                                                                                                                                                   7/8
  Cleanup          : glibc-common-2.28-101.el8.x86_64                                                                                                                                                            8/8
  Running scriptlet: glibc-common-2.28-101.el8.x86_64                                                                                                                                                            8/8
  Running scriptlet: glibc-common-2.28-211.el8.x86_64                                                                                                                                                            8/8
  Verifying        : glibc-langpack-en-2.28-211.el8.x86_64                                                                                                                                                       1/8
  Verifying        : glibc-gconv-extra-2.28-211.el8.x86_64                                                                                                                                                       2/8
  Verifying        : glibc-minimal-langpack-2.28-211.el8.x86_64                                                                                                                                                  3/8
  Verifying        : glibc-minimal-langpack-2.28-101.el8.x86_64                                                                                                                                                  4/8
  Verifying        : glibc-2.28-211.el8.x86_64                                                                                                                                                                   5/8
  Verifying        : glibc-2.28-101.el8.x86_64                                                                                                                                                                   6/8
  Verifying        : glibc-common-2.28-211.el8.x86_64                                                                                                                                                            7/8
  Verifying        : glibc-common-2.28-101.el8.x86_64                                                                                                                                                            8/8
Installed products updated.

Upgraded:
  glibc-2.28-211.el8.x86_64                                     glibc-common-2.28-211.el8.x86_64                                     glibc-minimal-langpack-2.28-211.el8.x86_64

Installed:
  glibc-gconv-extra-2.28-211.el8.x86_64                                                                     glibc-langpack-en-2.28-211.el8.x86_64

Complete!
[root@0df679e04d17 /]# rpm -qa glibc
glibc-2.28-211.el8.x86_64
🌐
OpenGenus
iq.opengenus.org › install-specific-version-of-glibc
Install specific version of Glibc
October 17, 2022 - This will install the required version of Glibc. ... wget http://ftp.gnu.org/gnu/libc/glibc-2.36.tar.gz tar -xvf glibc-2.36.tar.gz cd glibc-2.36 mkdir build mkdir glibc-2.36-install cd build ~/glibc/glibc-2.36/configure --prefix=$HOME/glibc/glibc-2.36-install make -j make install
🌐
LinuxVox
linuxvox.com › blog › linux-get-glibc-version
Linux: How to Get the GLIBC Version — linuxvox.com
Use a package manager for GLIBC updates: If you need to update the GLIBC version, use your system's package manager (e.g., apt on Ubuntu, yum on CentOS) to ensure a smooth and safe upgrade process.
🌐
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
foo@pi23:/wrk $ LD_LIBRARY_PATH=. ./c ./c: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./c) Answer: Your libc is too old.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
How do I get new GLIBC version - Linux Mint Forums
May 18, 2022 - What version of Mint are you using? I'm running 20.3 Mate and have GLIBC 2.31 installed. ... LMint wrote: ⤴Sun May 22, 2022 1:22 pm ... have GLIBC 2.31 installed. If that'll work an update to 20.3 would the way to go if you're using an older Mint release. glibc is one of the most widely used ...
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-from-scratch-13 › how-to-upgrade-glibc-4175599783
How to upgrade glibc
February 14, 2017 - LFS has a new release. I came for some pointers, asking to how to upgrade to glibc 2.25. What would be the recommended way to upgrade this package