CentOS 6.x系统升级glibc库至2.15版本的快速解决办法

0x00 基础软件安装

yum install -y glibc glibc-common glibc-devel glibc-headers glibc-static glibc-utils

0x01 下载升级所需软件包

下载地址:http://ftp.redsleeve.org/pub/steam/

wget http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.i686.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-devel-2.15-60.el6.i686.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-utils-2.15-60.el6.x86_64.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.x86_64.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-common-2.15-60.el6.x86_64.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-static-2.15-60.el6.x86_64.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-static-2.15-60.el6.i686.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-devel-2.15-60.el6.x86_64.rpm  
wget http://ftp.redsleeve.org/pub/steam/glibc-headers-2.15-60.el6.x86_64.rpm

0x02 升级

rpm -Uvh *.rpm
warning: glibc-2.15-60.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID ea675ea0: NOKEY
Preparing... ########################################### [100%]
   1:glibc-common           ########################################### [ 11%]
/usr/sbin/build-locale-archive: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/sbin/build-locale-archive)
/usr/sbin/build-locale-archive: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/sbin/build-locale-archive)
   2:glibc                  ########################################### [ 22%]
   3:glibc-headers          ########################################### [ 33%]
   4:glibc-devel            ########################################### [ 44%]
   5:glibc-utils            ########################################### [ 56%]
   6:glibc                  warning: /etc/localtime created as /etc/localtime.rpmnew
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
warning: /etc/rpc created as /etc/rpc.rpmnew
warning: /usr/lib/gconv/gconv-modules created as /usr/lib/gconv/gconv-modules.rpmnew ########################################### [ 67%]
   7:glibc-devel            ########################################### [ 78%]
   8:glibc-static           ########################################### [ 89%]
   9:glibc-static           ########################################### [100%]

4. 验证升级结果

[root@VM_110_15_centos lib64]# 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_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_PRIVATE

此内容引用自 https://www.cnblogs.com/madsnotes/articles/7264150.html#cnblogs_post_body

上一篇
下一篇