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 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
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
Oracle Linux: How to Update the glibc Package on Oracle Linux 8
Please register for a free account to access the full content and also to participate in Q&A in the community ... 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 ... More on community.oracle.com
🌐 community.oracle.com
January 2, 2025
How to properly upgrade glibc? - Unix & Linux Stack Exchange
The firmware of my NAS comes with a rather old version of glibc, namely 2.5. In order to cope with some precompiled binaries linked* to glibc 2.15, I would like to upgrade it. From some simple testing in a chroot environment I learned simply adding the newer libc-2.15.so and updating the symlink libc.so.6 will yield an unusable system; probably due to libc-2.15.so being linked to ld-linux... More on unix.stackexchange.com
🌐 unix.stackexchange.com
November 18, 2013
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"
🌐
Devtuts
devtuts.net › en › linux › how-to-update-glibc.html
How to update glibc
June 15, 2024 - Running new software in Docker/Podman images that already ship the required glibc is often easier than maintaining alternate prefixes manually. If you absolutely must replace the system libc (for example, in an offline lab environment), follow the workflow with extra safeguards: ... sudo cp -a /lib64/libc.so.6 /lib64/libc.so.6.orig sudo cp -a /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2.orig
🌐
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!
🌐
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/)
🌐
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/ ...
🌐
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?

Find elsewhere
🌐
Serverkurma
serverkurma.com › linux › how-to-update-glibc-newer-version-on-centos-6-x
How to Update glibc Newer Version on Centos 6.x – ServerKurma – Bilişim Hizmetleri
February 6, 2018 - We need GLIBC_2.17 version for our centos 6.x so we will use ftp. mkdir ~/glibc-install; cd ~/glibc-install wget http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz tar -zxvf glibc-2.17.tar.gz · After Download and extract all source files we need to create a build folder. It is better way to have another folder for build. ... We need to put files separete place in order to not corrput our linux system.
🌐
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 - [...] On Ubuntu Mantic or on incoming Noble it is 2.38. 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 GLIBC_2.8 GLIBC_2.9 GLIBC_2.10 GLIBC_2.11 GLIBC_2.12 GLIBC_2.13 GLIBC_2.14 GLIBC_2.15 GLIBC_2.16 GLIBC_2.17 GLIBC_2.18 GLIBC_2.22 GLIBC_2.23 GLIBC_2.24 GLIBC_2.25 GLIBC_2.26 GLIBC_2.27 GLIBC_2.28 GLIBC_2.29 GLIBC_2.30 GLIBC_2.31 GLIBC_2.32 GLIBC_2.33 GLIBC_2.34 GLIBC_2.35 GLIBC_PRIVATE So, the idea would be to install glibc 2.38 to be able to use programs requiring it, without breaking the system.
🌐
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 - You might find advice that suggests using LD_LIBRARY_PATH (ex: LD_LIBRARY_PATH=/opt/glibc-2.14/lib), but this can cause problems. When you specify the LD_LIBRARY_PATH you are giving your system an additional path to look for libraries to dynamically load. However, the lib folder contains many other libraries that could be loaded. This can cause things like unexpected segfaults. Our application only needed to load libc.so.6. If you use LD_PRELOAD, you can tell your application to load functions from a specific file instead of the locations it would normally load from.
🌐
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
🌐
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 - Please register for a free account to access the full content and also to participate in Q&A in the community ... 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 ...
🌐
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
I didn't say to recompile glibc. c) backports was suggested. What you're fixated on doing is this.. ... foo@pi24:/wrk/TTT $ scp /lib/aarch64-linux-gnu/libc.so.6 foo@pidev4:/wrk/ libc.so.6 100% 1613KB 37.6MB/s 00:00 foo@pi23:/wrk $ LD_LIBRARY_PATH=. ./c Illegal instruction ..which is fortunate because it might have worked (undefined behaviour). In this case we get a hint..
🌐
Reddit
reddit.com › r/linux › how to update glibc?
How to update GLIBC? : r/linux
July 8, 2023 - I'm assuming the only way to get Blender working again is if I update glibc. ... Uninstall blender. Grab the source code and compile it yourself. Report this issue to the linux mint community if you are getting blender from the official repos. ... As another poster mentioned, Mint 19.3 is EOL as of April 2023. Upgrading to 20.x or 21.x will also pull in a newer version of glibc.
🌐
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 - If your "/home" is on the same partition as "/", you will need to back up it first, including hidden files and settings, then install Mint (this time, choose two different partitions for your "/" and your "/home"), then copy your "/home" files, then reboot (you will have recovered your settings), then personalize your programs. With Mint 20.3, you will have glibc 2.31, allowing you to install your RimPy. An alternative solution is to build glibc from source, see https://www.linuxfromscratch.org/lfs/vi ...
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 - In this article, we have mentioned the steps to illustrate how to download and install a specific version of Glibc so that you can resolve glibc related issues. The latest version of Glibc is v2.36. ... Check the current version of Glibc in your system using these commands. Glibc is an open-source project maintained by GNU. Usually, Linux distributions come with the correct version of Glibc but in some cases, an updated version might be needed which you can install easily using the steps in this article at OpenGenus.