Centos7使用rpm升级glibc2.28

警告

请不要将该方案应用于生产环境。
该方案升级后,安装gcc,会破坏包依赖关系


检查glibc版本

ldd --version

在这里插入图片描述


下载glibc2.28的rpm包

参考: https://www.cnblogs.com/caya-yuan/p/10561439.html

下载 glibcmakeferoda29(fc29)系统 rpm包 (选用feroda29的包是最接近Centos7的)

相关rpm下载地址: https://github.com/omaidb/centos7_kernel_rpm

包名作用
glibc-2.28-26.fc29.x86_64.rpm基础包,没个bash用不了
glibc-common-2.28-26.fc29.x86_64.rpm基础包的依赖包
glibc-all-langpacks-2.28-26.fc29.x86_64.rpm语言包,缺的话你的字符终端会看到非常多星星
libnsl-2.28-26.fc29.x86_64.rpm名称空间的库,没有的话su登录不了,dns也无法域名解析
libxcrypt-4.4.4-2.fc29.x86_64.rpm加密用的库,远程传输都需要用到

以下5个(缺一不可)装了之后你的系统就能正常用glibc2.28

# 下载glibc-2.28-26.fc29.x86_64.rpm
wget -c https://media.githubusercontent.com/media/omaidb/centos7_kernel_rpm/refs/heads/main/centos7_glibc2.28_rpm/glibc-2.28-26.fc29.x86_64.rpm

# 下载glibc-common-2.28-26.fc29.x86_64.rpm
wget -c https://media.githubusercontent.com/media/omaidb/centos7_kernel_rpm/refs/heads/main/centos7_glibc2.28_rpm/glibc-common-2.28-26.fc29.x86_64.rpm

# 下载glibc-all-langpacks-2.28-26.fc29.x86_64.rpm
wget -c https://media.githubusercontent.com/media/omaidb/centos7_kernel_rpm/refs/heads/main/centos7_glibc2.28_rpm/glibc-all-langpacks-2.28-26.fc29.x86_64.rpm

# 下载libnsl-2.28-26.fc29.x86_64.rpm
wget -c https://media.githubusercontent.com/media/omaidb/centos7_kernel_rpm/refs/heads/main/centos7_glibc2.28_rpm/libnsl-2.28-26.fc29.x86_64.rpm

# 下载libxcrypt-4.4.4-2.fc29.x86_64.rpm
wget -c https://media.githubusercontent.com/media/omaidb/centos7_kernel_rpm/refs/heads/main/centos7_glibc2.28_rpm/libxcrypt-4.4.4-2.fc29.x86_64.rpm

使用rpm包升级到glibc-2.28

# 先创建一个后台会话,防止ssh失联
screen -R rpm

# 安装glibc的rpm包
rpm -ivh *.rpm --nodeps --force

# 重启系统
reboot

结果验证

重启系统后检查glibc版本

# 检查glibc版本
ldd --version

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

教Linux的李老师

赞赏是第一生产力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值