• 将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 versionArchitecturesRHEL baseKernelCentOS release dateRHEL release dateDelay (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/

  • 相关阅读:
    Hive之序列化与反序列化(SerDe)
    Hive从入门到精通
    HIVE从路人到入门
    Intel IDEA 2018破解(亲测成功)
    在小红家里面,有n组开关,触摸每个开关,可以使得一组灯泡点亮。
    一个n*n 的方格,要从左上角走到右下角,一次只能往右或往下走一步,求算法得出所有走动的方法数。
    Ionic3多个自定义过滤器--管道(pipe)
    ionic3 添加多个自定义组件
    ionic3 slides轮播图手动滑动后无法自动播放问题
    Vue2.2版本学习小结
  • 原文地址:https://www.cnblogs.com/emanlee/p/13594584.html
Copyright © 2020-2023  润新知