CentOS用rpm升级glibc

本文提供了在 CentOS 6 系统上升级 glibc 至不同版本的方法,包括从 2.17 到 2.20 的详细步骤。通过 wget 下载相应的 rpm 包,并使用 rpm 命令进行安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

CentOS用rpm升级glibc


#! /bin/sh

# update glibc to 2.23 for CentOS 6

wget http://cbs.centos.org/kojifiles/packages/glibc/2.22.90/21.el7/x86_64/glibc-2.22.90-21.el7.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/glibc/2.22.90/21.el7/x86_64/glibc-common-2.22.90-21.el7.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/glibc/2.22.90/21.el7/x86_64/glibc-devel-2.22.90-21.el7.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/glibc/2.22.90/21.el7/x86_64/glibc-headers-2.22.90-21.el7.x86_64.rpm
rpm -Uvh glibc-2.22.90-21.el7.x86_64.rpm \
         glibc-common-2.22.90-21.el7.x86_64.rpm \
         glibc-devel-2.22.90-21.el7.x86_64.rpm \
         glibc-headers-2.22.90-21.el7.x86_64.rpm \
         --force --nodeps



以下仅作资料收集而已,不建议 采用

#! /bin/sh

# update glibc to 2.17 for CentOS 6
# https://gist.github.com/harv/f86690fcad94f655906ee9e37c85b174
# https://cbs.centos.org/koji/buildinfo?buildID=7893
# https://rpmfind.net/linux/dag/
# https://getfedora.org/keys/
# https://getfedora.org/keys/obsolete.html


Download the latest elrepo-release rpm from
http://elrepo.org/linux/elrepo/el6/x86_64/RPMS/
# rpm -Uvh elrepo-release*rpm
# yum install elrepo-release

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm


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

rpm --import http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/pubkey.gpg
rpm -Uvh glibc-devel-2.17-55.el6.x86_64.rpm \
         glibc-2.17-55.el6.x86_64.rpm \
         glibc-common-2.17-55.el6.x86_64.rpm \
         glibc-headers-2.17-55.el6.x86_64.rpm \
         --force --nodeps

		 
wget https://rpmfind.net/linux/mageia/distrib/5/x86_64/media/core/updates/glibc-2.20-26.mga5.x86_64.rpm
wget https://rpmfind.net/linux/mageia/distrib/5/x86_64/media/core/updates/glibc-devel-2.20-26.mga5.x86_64.rpm
rpm --import https://rpmfind.net/linux/dag/RPM-GPG-KEY-RepoForge-Test-Key-1
rpm -Uvh glibc-devel-2.20-26.mga5.x86_64.rpm \
         glibc-2.20-26.mga5.x86_64.rpm \
         --force --nodeps
		 

wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-2.20-8.fc21.x86_64.rpm
wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-common-2.20-8.fc21.x86_64.rpm
wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-devel-2.20-8.fc21.x86_64.rpm
wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-headers-2.20-8.fc21.x86_64.rpm
wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-static-2.20-8.fc21.x86_64.rpm
wget https://archive.fedoraproject.org/pub/archive/fedora/linux/updates/21/x86_64/g/glibc-utils-2.20-8.fc21.x86_64.rpm

rpm --import https://getfedora.org/static/95A43F54.txt
rpm -Uvh glibc-2.20-8.fc21.x86_64.rpm \
glibc-common-2.20-8.fc21.x86_64.rpm \
glibc-devel-2.20-8.fc21.x86_64.rpm \
glibc-headers-2.20-8.fc21.x86_64.rpm \
--force --nodeps





转载于:https://www.cnblogs.com/yisuo/p/9462674.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值