0
点赞
收藏
分享

微信扫一扫

将Centos系统从7.0~7.7升级到7.8版本

木匠0819 2023-11-02 阅读 36

 1. 检查内核版本

yum info kernel -q

 已安装的软件包
名称    :kernel
架构    :x86_64
版本    :3.10.0
发布    :862.el7
大小    :62 M
源    :installed
来自源:anaconda
简介    : The Linux kernel
网址    :http://www.kernel.org/
协议    : GPLv2
描述    : The kernel package contains the Linux kernel (vmlinuz), the core of any
         : Linux operating system.  The kernel handles the basic functions
         : of the operating system: memory allocation, process allocation, device
         : input and output, etc.

名称    :kernel
架构    :x86_64
版本    :3.10.0
发布    :862.14.4.el7
大小    :62 M
源    :installed
来自源:updates
简介    : The Linux kernel
网址    :http://www.kernel.org/
协议    : GPLv2
描述    : The kernel package contains the Linux kernel (vmlinuz), the core of any
         : Linux operating system.  The kernel handles the basic functions
         : of the operating system: memory allocation, process allocation, device
         : input and output, etc.

名称    :kernel
架构    :x86_64
版本    :3.10.0
发布    :957.1.3.el7
大小    :63 M
源    :installed
来自源:updates
简介    : The Linux kernel
网址    :http://www.kernel.org/
协议    : GPLv2
描述    : The kernel package contains the Linux kernel (vmlinuz), the core of any
         : Linux operating system.  The kernel handles the basic functions
         : of the operating system: memory allocation, process allocation, device
         : input and output, etc.

可安装的软件包
名称    :kernel
架构    :x86_64
版本    :3.10.0
发布    :1127.19.1.el7
大小    :50 M
源    :updates/7/x86_64
简介    : The Linux kernel
网址    :http://www.kernel.org/
协议    : GPLv2
描述    : The kernel package contains the Linux kernel (vmlinuz), the core of any
         : Linux operating system.  The kernel handles the basic functions
         : of the operating system: memory allocation, process allocation, device
         : input and output, etc.

2. 升级内核

yum upgrade kernel

 依赖关系解决

===========================================================================================================
 Package                                架构                           版本                                                源                               大小
===========================================================================================================
正在安装:
 kernel                                 x86_64                         3.10.0-1127.19.1.el7                                updates                          50 M
为依赖而更新:
 linux-firmware                         noarch                         20191203-76.gite8a0f4c.el7                          base                             81 M

===========================================================================================================

yum list kernel -q
已安装的软件包
kernel.x86_64                                                           3.10.0-862.el7                                                                  @anaconda
kernel.x86_64                                                           3.10.0-862.14.4.el7                                                             @updates
kernel.x86_64                                                           3.10.0-957.1.3.el7                                                              @updates
kernel.x86_64                                                           3.10.0-1127.19.1.el7                                                            @updates

reboot

删除旧的内核:

 ==========================================

更新CentOS

cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

yum clean all

yum update

reboot

cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)

==========================================
注意:
1 升级CentOS和内核之后,python,yum等都没任何变化;
python的版本不会升级到 python3
2 如果把python2升级到python3,会导致yum无法使用;因此,不要把python2删除掉;yum默认使用python2;
3 CentOS上同时安装python2和python3会导致奇怪的错误,这些错误解决起来十分棘手。

 ==========================================

CentOS version 7[edit]

hideCentOS version

Architectures

RHEL base

Kernel

CentOS release date

RHEL release date

Delay (days)

7.0-1406[110]

x86-64[111][b]

7.0

3.10.0-123

2014-07-07[27]

2014-06-10[112]

27

7.1-1503

x86-64

7.1

3.10.0-229

2015-03-31[113][114]

2015-03-05[115]

26

7.2-1511

x86-64

7.2

3.10.0-327

2015-12-14[116][117]

2015-11-19[118]

25

7.3-1611

x86-64

7.3

3.10.0-514

2016-12-12[119]

2016-11-03[120]

39

7.4-1708

x86-64

7.4

3.10.0-693

2017-09-13[121]

2017-07-31[122][103]

43

7.5-1804

x86-64

7.5

3.10.0-862

2018-05-10[123]

2018-04-10[124][103]

31

7.6-1810

x86-64

7.6

3.10.0-957

2018-12-03[125]

2018-10-30[126][103]

34

7.7-1908

x86-64

7.7

3.10.0-1062

2019-09-17[127]

2019-08-06[128][103]

42

7.8-2003

x86-64

7.8

3.10.0-1127

2020-04-27[129]

2020-03-30[130][103]

28

7.9-xxxx

x86-64

7.9

3.10.0-xxxx

TBA

TBA

?

Latest version information[edit]

CentOS version 8[edit]

hideCentOS version

Architectures

RHEL base

Kernel

CentOS release date

RHEL release date

Delay (days)

8.0-1905

x86-64, ppc64le, AArch64

8.0

4.18.0-80

2019-09-24[15]

2019-05-07[131][103]

140

8.1-1911

8.1

4.18.0-147

2020-01-15[132]

2019-11-05[133][103]

71

8.2-2004

8.2

4.18.0-193

2020-06-15[134]

2020-04-28[135][103]

48


 

 ==========================================

REF

https://blog.ll00.cn/archives/87.html

https://en.wikipedia.org/wiki/CentOS

https://www.knownhost.com/wiki/dedicated-servers/kernel-version#:~:text=To%20view%20the%20current%20kernel,same%20CentOS%207%20operating%20system.&text=This%20command%20may%20run%20noticeably,or%20more%20plugins%20by%20default.

 https://www.jianshu.com/p/fdf6bb6c5b9c

https://www.howtoing.com/install-upgrade-kernel-version-in-centos-7/



举报

相关推荐

0 条评论