Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@wander3r

This comment has been minimized.

Copy link

@wander3r wander3r commented May 4, 2017

good job

@Little--ZM

This comment has been minimized.

Copy link

@Little--ZM Little--ZM commented May 5, 2017

great!!! solved my problem!! Tks!!!

@jianghechao

This comment has been minimized.

Copy link

@jianghechao jianghechao commented Aug 10, 2017

good

@jvalenciag

This comment has been minimized.

Copy link

@jvalenciag jvalenciag commented Aug 31, 2017

good! thank you!

@kid1412z

This comment has been minimized.

Copy link

@kid1412z kid1412z commented Oct 9, 2017

Thanks

@Tom-Deng

This comment has been minimized.

Copy link

@Tom-Deng Tom-Deng commented Oct 27, 2017

perfect job!
If return error as "error: Failed dependencies:", please add parameter "--force --nodeps" at the end of the last order.

@IstanbulBoy

This comment has been minimized.

Copy link

@IstanbulBoy IstanbulBoy commented Oct 28, 2017

good job. thanks

@ilfox

This comment has been minimized.

Copy link

@ilfox ilfox commented Nov 21, 2017

Cheers mate!

@ngwing

This comment has been minimized.

Copy link

@ngwing ngwing commented Dec 8, 2017

good!

@Zrechkon

This comment has been minimized.

Copy link

@Zrechkon Zrechkon commented Jan 4, 2018

I need a bit of help, guys.
I've tried this on Centos 6.5; and got a large ammount of error messages/

Each update requireing diffrent items has upwords of 50 diffrent error lines reffrance need it; these are just 1 sample line of each item THAT I CAN SEE- the terminal is filled with these errors.

libpthread.so.0(GLIBC_2.0) is needed by (installed) quota-1:3.17-21.el6_5.i686
libpthread.so.0(GLIBC_2.1) is needed by (installed) device-mapper-multipath-0.4.9-72.el6_5.1.i686
libpthread.so.0(GLIBC_2.1.1) is needed by (installed) python-libs-2.6.6-52.el6.i686
libpthread.so.0(GLIBC_2.2) is needed by (installed) rpm-build-4.8.0-37.el6.i686
libpthread.so.0(GLIBC_2.3.3) is needed by (installed) iscsi-initiator-utils-6.2.0.873-10.el6.i686
libpthread.so.0(GLIBC_2.4) is needed by (installed) pulseaudio-libs-0.9.21-14.el6_3.i686
libresolv.so.2 is needed by (installed) libsmbclient-0:3.6.9-168.el6_5.i686
libresolv.so.2(GLIBC_2.2) is needed by (installed) postfix-2:2.6.6-6.el6_5.i686
librt.so.1 is needed by (installed) file-roller-2.28.2-6.el6.i686
librt.so.1(GLIBC_2.2) is needed by (installed) wget-1.12-1.11.el6_5.i686
libutil.so.1 is needed by (installed) gdb-7.2-60.el6_4.1.i686
libutil.so.1(GLIBC_2.0) is needed by (installed) pam-1.1.1-17.el6.i686

I tried searchign for these items alone with no luck.

Im stuck on glibc 2.12, and I need 2.15 or newer.
"yum -y update glibc" does not update anything either, sadly.

Any help would be appreciated, guys; Thank you.

@gnakkala

This comment has been minimized.

Copy link

@gnakkala gnakkala commented Feb 13, 2018

Excellent link, was struggling since a week until I found this, made my day...THANKS A LOT!!!!

@leccyril

This comment has been minimized.

Copy link

@leccyril leccyril commented Jul 1, 2018

excellent add the force no deps make it work

@DenisShalaevSetronica

This comment has been minimized.

Copy link

@DenisShalaevSetronica DenisShalaevSetronica commented Jul 10, 2018

After packages are installed, the time zone is reset to UTC

@gmayank129

This comment has been minimized.

Copy link

@gmayank129 gmayank129 commented Jul 30, 2018

How to go back to original glibc after successfully applying this file?

@sluge

This comment has been minimized.

Copy link

@sluge sluge commented Aug 3, 2018

Here is my variant:
#!/bin/bash

SERVER=http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/
VERSION=glibc-2.17-55.fc20
REPO64=epel-6-x86_64
REPO32=epel-6-i386

SERVER32=$SERVER/$REPO32/$VERSION
SERVER64=$SERVER/$REPO64/$VERSION
#x64 rpms
GLIBC64_1=glibc-2.17-55.el6.x86_64.rpm
GLIBC64_2=glibc-common-2.17-55.el6.x86_64.rpm
GLIBC64_3=glibc-devel-2.17-55.el6.x86_64.rpm
GLIBC64_4=glibc-headers-2.17-55.el6.x86_64.rpm
GLIBC64_5=glibc-static-2.17-55.el6.x86_64.rpm

#x32 rpms
GLIBC32_1=glibc-2.17-55.el6.i686.rpm
GLIBC32_2=glibc-common-2.17-55.el6.i686.rpm
GLIBC32_3=glibc-devel-2.17-55.el6.i686.rpm
GLIBC32_4=glibc-headers-2.17-55.el6.i686.rpm
GLIBC32_5=glibc-static-2.17-55.el6.i686.rpm

rpm -Uvh --force --nodeps $SERVER64/$GLIBC64_1 $SERVER64/$GLIBC64_2 \ $SERVER64/$GLIBC64_3 $SERVER64/$GLIBC64_4 $SERVER64/$GLIBC64_5 $SERVER32/$GLIBC32_1 \ $SERVER32/$GLIBC32_2 $SERVER32/$GLIBC32_3 $SERVER32/$GLIBC32_4 $SERVER32/$GLIBC32_5

@Yadehaa

This comment has been minimized.

Copy link

@Yadehaa Yadehaa commented Nov 7, 2018

Can you fix glibc 2.19 or higher for CentOS7

@XMR888

This comment has been minimized.

Copy link

@XMR888 XMR888 commented Apr 19, 2019

Don't forget update glibc-utils and glibc-static (if installed 2.12 version):

wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm
wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-static-2.17-55.el6.x86_64.rpm \
glibc-utils-2.17-55.el6.x86_64.rpm

Your maybe receive errors on run "yum update" without install this rpm's

@ice7mayu

This comment has been minimized.

Copy link

@ice7mayu ice7mayu commented Apr 28, 2019

Thanks, man. You're a lifesaver.
When I upgrade GLIBC from 2.12 to 2.17, I had to add --nodeps option to rpm to ignore the dependency check due to lack of GLIBC 2.14 in my system.

@Deepakwani93

This comment has been minimized.

Copy link

@Deepakwani93 Deepakwani93 commented Jun 28, 2019

This works as a charm. thanks man

@Davelyb

This comment has been minimized.

Copy link

@Davelyb Davelyb commented Sep 27, 2019

Don't forget update glibc-utils and glibc-static (if installed 2.12 version):

wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm
wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-static-2.17-55.el6.x86_64.rpm \
glibc-utils-2.17-55.el6.x86_64.rpm

Your maybe receive errors on run "yum update" without install this rpm's

It helped, thank you very much!

@Davelyb

This comment has been minimized.

Copy link

@Davelyb Davelyb commented Sep 27, 2019

Thanks a lot, it worked for me.

@RyanEwen

This comment has been minimized.

Copy link

@RyanEwen RyanEwen commented Oct 12, 2019

How can I downgrade back to the regular versions?

[root@iworx ~]# yum downgrade glibc glibc-common glibc-devel glibc-headers glibc-utils glibc-static libstdc++ libstdc++-static libstdc++-devel
Loaded plugins: fastestmirror, replace, security
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
 * base: mirror.dst.ca
 * epel: mirror.dst.ca
 * extras: mirror.dst.ca
 * remi-safe: repo1.ash.innoscale.net
 * updates: mirror.dst.ca
 * webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc.x86_64 0:2.17-55.el6 will be erased
---> Package glibc-common.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc-common.x86_64 0:2.17-55.el6 will be erased
---> Package glibc-devel.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc-devel.x86_64 0:2.17-55.el6 will be erased
---> Package glibc-headers.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc-headers.x86_64 0:2.17-55.el6 will be erased
---> Package glibc-static.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc-static.x86_64 0:2.17-55.el6 will be erased
---> Package glibc-utils.x86_64 0:2.12-1.212.el6_10.3 will be a downgrade
---> Package glibc-utils.x86_64 0:2.17-55.el6 will be erased
---> Package libstdc++.x86_64 0:4.4.7-23.el6 will be a downgrade
---> Package libstdc++.x86_64 0:4.8.2-16.3.el6 will be erased
---> Package libstdc++-devel.x86_64 0:4.4.7-23.el6 will be a downgrade
---> Package libstdc++-devel.x86_64 0:4.8.2-16.3.el6 will be erased
--> Finished Dependency Resolution
Error: Package: libstdc++-static-4.8.2-16.3.el6.x86_64 (installed)
           Requires: libstdc++-devel = 4.8.2-16.3.el6
           Removing: libstdc++-devel-4.8.2-16.3.el6.x86_64 (installed)
               libstdc++-devel = 4.8.2-16.3.el6
           Downgraded By: libstdc++-devel-4.4.7-23.el6.x86_64 (base)
               libstdc++-devel = 4.4.7-23.el6
               libstdc++-devel = 4.4.4-15.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
@Sajjadmanal

This comment has been minimized.

Copy link

@Sajjadmanal Sajjadmanal commented Oct 15, 2019

I am getting this issue:

2019-10-15 23:13:19 (188 KB/s) - âglibc-headers-2.17-55.el6.x86_64.rpm.2â

warning: glibc-2.17-55.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 73ec361c: NOKEY
error: Failed dependencies:
       glibc-common = 2.12-1.212.el6_10.3 is needed by (installed) glibc-2.12-1.212.el6_10.3.i686
       glibc-headers = 2.12-1.212.el6_10.3 is needed by (installed) glibc-devel-2.12-1.212.el6_10.3.i686

@xhsux

This comment has been minimized.

Copy link

@xhsux xhsux commented Oct 25, 2019

I spent 2 whole days making 2.17 libc and linking it to my executable but failed.
Thank god I finally found this.
Thanks so much ~~~

@ostasevych

This comment has been minimized.

Copy link

@ostasevych ostasevych commented Jan 20, 2020

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?

@Vitsen15

This comment has been minimized.

Copy link

@Vitsen15 Vitsen15 commented Jan 28, 2020

Have the same problem as here:


warning: glibc-2.17-55.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 73ec361c: NOKEY
error: Failed dependencies:
        glibc = 2.12-1.212.el6_10.3 is needed by (installed) nscd-2.12-1.212.el6_10.3.x86_64
        glibc = 2.12-1.209.el6_9.2 is needed by (installed) nscd-2.12-1.209.el6_9.2.x86_64
@daixianceng

This comment has been minimized.

Copy link

@daixianceng daixianceng commented Mar 22, 2020

You might ecounter some errors: “error: Failed dependencies:“

To fix it just add this parameter --force --nodeps at the end of the all command.

@stunney

This comment has been minimized.

Copy link

@stunney stunney commented Apr 1, 2020

Amazing! Thank you.

@carrascodc

This comment has been minimized.

Copy link

@carrascodc carrascodc commented Apr 30, 2020

Thank you so much for this. Spent so many hours troubleshooting a Python Module (Genie) on Centos6, which has a YUM Package limit of glibc-2.12. And now it works.

Much appreciated.

@burakoznur

This comment has been minimized.

Copy link

@burakoznur burakoznur commented Jul 29, 2020

This works. Thanks a lot.

@irf1404

This comment has been minimized.

Copy link

@irf1404 irf1404 commented Sep 19, 2020

Work Perfect!

@chuquanghopbk

This comment has been minimized.

Copy link

@chuquanghopbk chuquanghopbk commented Sep 29, 2020

thanks alot, it works

@tk42

This comment has been minimized.

Copy link

@tk42 tk42 commented Sep 29, 2020

you save my day

@SalimF

This comment has been minimized.

Copy link

@SalimF SalimF commented Nov 3, 2020

Works great on CentOS release 6.10 (Final) .

@vishalbasra

This comment has been minimized.

Copy link

@vishalbasra vishalbasra commented Nov 9, 2020

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

@gomo

This comment has been minimized.

Copy link

@gomo gomo commented Feb 15, 2021

It works, thanks !

@chosyang

This comment has been minimized.

Copy link

@chosyang chosyang commented Sep 27, 2021

How to update GLIBC version 2.14 on Centos6.10 ?

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