將Centos系統從7.0~7.7升級到7.8版本


 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

刪除舊的內核:

package-cleanup --oldkernels --count=1

---> 軟件包 kernel.x86_64.0.3.10.0-862.el7 將被 刪除
---> 軟件包 kernel.x86_64.0.3.10.0-862.14.4.el7 將被 刪除
---> 軟件包 kernel-devel.x86_64.0.3.10.0-862.el7 將被 刪除
---> 軟件包 kernel-devel.x86_64.0.3.10.0-862.14.4.el7 將被 刪除


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

更新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]

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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM