RHEL 8小版本升级

文章提供了两种方法将RHEL8.4系统升级到8.5:一种是注册系统,利用红帽yum源进行升级;另一种是不注册系统,通过本地镜像创建仓库进行升级。详细步骤包括清除缓存、注册、更新系统、检查升级结果和重启使用新内核。
摘要由CSDN通过智能技术生成

以rhel 8.4升级到8.5为例, 有注册系统和不注册系统两种方式。

一、注册系统,使用红帽yum源
查看现有系统和内核版本

cat /etc/redhat-release
uname -r
1
2
清除缓存

yum clean all
1
注册系统

subscription-manager register --username=<>  --password=<>  --auto-attach
1
升级系统

yum --releasever=8.5 update
1
检查升级是否成功

cat /etc/redhat-release
uname -r
1
2
重启使用新kernel

reboot
uname -r
1
2
二、不注册系统,使用本地镜像
下载/拷贝rhel 8.5镜像到现有操作系统
免费下载地址:https://www.linuxshelltips.com/download-rhel-8/

挂载镜像

mkdir -p  /mnt/disk
mount -o loop rhel-8.5-x86_64-dvd.iso /mnt/disk
1
2
创建本地仓库

vim /etc/yum.repos.d/my.repo

[dvd-BaseOS]
name=DVD for RHEL8 - BaseOS
baseurl=file:///mnt/disk/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[dvd-AppStream]
name=DVD for RHEL8 - AppStream
baseurl=file:///mnt/disk/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
清除缓存

yum clean all
1
检查仓库是否可用

yum repolist enabled
1
升级系统

yum update
1
检查升级是否成功

cat /etc/redhat-release
uname -r
1
2
重启使用新kernel

reboot
uname -r
1
2
参考文档:
https://www.unixarena.com/2018/05/upgrade-redhat-linux-to-specific-version.html/
https://access.redhat.com/solutions/1355683
https://access.redhat.com/solutions/3776721
————————————————
版权声明:本文为CSDN博主「一千零十页」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_38638706/article/details/122616624

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

手把手教你学AI

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值