文章目录
- CentOS 7.9升级到CentOS 8.5 解决方案
- 1.准备一台CentOS 7版本服务器
- 2.准备epel仓库
- 3.安装rpmconf软件包
- 3.Centos 软件包清理
- 4.安装Centos 8默认软件管理器dnf
- 5.卸载Centos 7默认软件管理器yum
- 6.系统更新
- 7.系统升级(centos 7升级 centos 8)
- 8.升级后系统测试
CentOS 7.9升级到CentOS 8.5 解决方案
1.准备一台CentOS 7版本服务器
[root@test ~]
Linux
[root@test ~]
CentOS Linux release 7.4.1708 (Core)
[root@test ~]
3.10.0-693.el7.x86_64
2.准备epel仓库
[root@test ~]
[root@test ~]
3.安装rpmconf软件包
[root@test ~]
[root@test ~]
Configuration file '/etc/nsswitch.conf'
-rw-r--r--. 1 root root 1938 Apr 28 2021 /etc/nsswitch.conf.rpmnew
-rw-r--r--. 1 root root 1746 Oct 2 2021 /etc/nsswitch.conf
......
...
3.Centos 软件包清理
[root@test ~]
Loaded plugins: fastestmirror
libsysfs-2.1.0-16.el7.x86_64
zlib-devel-1.2.7-19.el7_9.x86_64
[root@test ~]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
.....
...
4.安装Centos 8默认软件管理器dnf
[root@test ~]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...
..
[root@test ~]
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python2.7/site-packages/dnf/__init__.py", line 30, in <module>
.......
...
[root@test ~]
[root@test ~]
[root@test ~]
4.0.9
Installed: dnf-0:4.0.9.2-2.el7_9.noarch at Tue 07 Jun 2022 01:31:12 PM CST
Built : CentOS BuildSystem <http://bugs.centos.org> at Wed 07 Apr 2021 03:52:38 PM CST
Installed: rpm-0:4.11.3-48.el7_9.x86_64 at Tue 07 Jun 2022 01:18:49 PM CST
Built : CentOS BuildSystem <http://bugs.centos.org> at Wed 24 Nov 2021 04:33:39 PM CST
5.卸载Centos 7默认软件管理器yum
[root@test ~]
[root@test ~]
6.系统更新
#CentOS 7升级到CentOS 8
【linux下载官方链接】 【centos官方下载】
[root@test ~]
7.系统升级(centos 7升级 centos 8)
[root@test ~]
或
[root@test ~]
[root@test ~]
或
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
或
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
[root@test ~]
CentOS Linux release 8.5.2111
8.升级后系统测试
[root@test ~]
本文来自博客园,作者:ଲ小何才露煎煎饺,转载请注明原文链接:https://www.cnblogs.com/zeny/p/16578221.html
来源:https://www.cnblogs.com/zeny/p/16578221.html |