Skip to content

Instantly share code, notes, and snippets.

@harv
Last active June 20, 2025 05:10
Show Gist options
  • Select an option

  • Save harv/f86690fcad94f655906ee9e37c85b174 to your computer and use it in GitHub Desktop.

Select an option

Save harv/f86690fcad94f655906ee9e37c85b174 to your computer and use it in GitHub Desktop.
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
glibc-common-2.17-55.el6.x86_64.rpm \
glibc-devel-2.17-55.el6.x86_64.rpm \
glibc-headers-2.17-55.el6.x86_64.rpm
@SalimF

SalimF commented Nov 3, 2020

Copy link
Copy Markdown

Works great on CentOS release 6.10 (Final) .

@vishalbasra

Copy link
Copy Markdown

I also needed to put kernel-headers in on CentOS release 6.6

@gomo

gomo commented Feb 15, 2021

Copy link
Copy Markdown

It works, thanks !

@chosyang

Copy link
Copy Markdown

How to update GLIBC version 2.14 on Centos6.10 ?

@JEGANMANIC

Copy link
Copy Markdown

Hello, From the current version, 3.4.13 - I need to install 3.4.14 & 3.4.15 versions. but am getting below error when I update the package - libstdc++-4.8.5-44.el7.x86_64.rpm. could you help me find out what I'm missing here?

Error: Package: libstdc++-devel-4.4.7-23.el6.x86_64 (@base)
Requires: libstdc++(x86-64) = 4.4.7-23.el6
Removing: libstdc++-4.4.7-23.el6.x86_64 (@base)
libstdc++(x86-64) = 4.4.7-23.el6
Updated By: libstdc++-4.8.5-44.el7.x86_64 (/libstdc++-4.8.5-44.el7.x86_64)
libstdc++(x86-64) = 4.8.5-44.el7
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-2.12-1.212.el6_10.3.i686 has missing requires of glibc-common = ('0', '2.12', '1.212.el6_10.3')
glibc-2.17-55.el6.x86_64 is a duplicate with glibc-2.12-1.212.el6_10.3.i686

@JEGANMANIC

Copy link
Copy Markdown

Hey, I did that. Now when I try to install something, eg npm I am getting the following notices: ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: glibc-2.12-1.212.el6_10.3.i686 has missing requires of glibc-common = ('0', '2.12', '1.212.el6_10.3') glibc-2.17-55.el6.x86_64 is a duplicate with glibc-2.12-1.212.el6_10.3.i686

What to do?

did you fix that issue? I'm also having the same two errors after installing the fix :)

@burakoznur

burakoznur commented Nov 17, 2021 via email

Copy link
Copy Markdown

@JEGANMANIC

Copy link
Copy Markdown

Figured it out!!
I'm new to rpm package commands and just need to pass "--force --nodeps" options to rpm command, update was successful.

root@bse [/usr/local/lib]# rpm -Uvh --force --nodeps libstdc++-4.8.5-44.el7.x86_64.rpm
warning: libstdc++-4.8.5-44.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ########################################### [100%]
1:libstdc++ ########################################### [100%]
root@bse [/usr/local/lib]# strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

@JEGANMANIC

Copy link
Copy Markdown

@hao - Thank you for posting this solution!! You saved lot of time!!

@axlroden

axlroden commented Jan 10, 2022

Copy link
Copy Markdown

WARNING

This will brick many things in your Centos 6 distro, and there is no clean way to go back without knowing all symlinks before you install these.
If you are trying to do something with python that complains about requiring glibc over 2.12, consider using pip version 19 (pip install pip==19), it will use the manylinux2010 (based on Centos 6) wheels and may have c binaries for your system.

If you are compiling c binaries that need glibc > 2.12 its better to install glibc in a seperate folder and use PATH (LD_LIBRARY_PATH=/opt/glibc-2.17/lib)to link to it instead

@JEGANMANIC

Copy link
Copy Markdown

Thanks for the suggestion! We built latest python 3.9 on CentOS 6 but it was giving error that unable to load libc.so.6, so had to configure LD_LIBRARY_PATH and works

@jhult

jhult commented Jan 11, 2022

Copy link
Copy Markdown

@Sahil148024

Copy link
Copy Markdown

Hello team,

kindly help me in getting EoS/EoL date for FOSS Glibc 2.17.0.

Regards,
Sahil

@nainajais777

Copy link
Copy Markdown

Screenshot-1

kindly help ..i am trying to install visual studio code in CentOS6

@axlroden

axlroden commented Oct 13, 2022

Copy link
Copy Markdown

kindly help ..i am trying to install visual studio code in CentOS6

You can't.

@nainajais777

Copy link
Copy Markdown

kindly help ..i am trying to install visual studio code in CentOS6

You can't.

But why...i am using CentOS [10].What is the solution?

@axlroden

Copy link
Copy Markdown

Upgrade OS.

@Zhang21

Zhang21 commented Apr 23, 2023

Copy link
Copy Markdown
rpm -Uvh --nodeps

@Marskey

Marskey commented Jun 20, 2025

Copy link
Copy Markdown

epel-6 was delete by copr-be.cloud.fedoraproject.or

@alsyundawy

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment