首页 > 系统相关 >Linux基础——BCeuler21.10内核升级

Linux基础——BCeuler21.10内核升级

时间:2024-08-07 09:54:39浏览次数:18  
标签:kernel 2107.6 4.19 oe1 64 内核 Linux BCeuler21.10 90

Linux基础——BCeuler21.10内核升级

一、准备升级的kernel包

[root@harbor kernel]# ls

kernel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64.rpm        kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64.rpm

kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64.rpm       kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64.rpm

kernel-devel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64.rpm  kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64.rpm

二、确认当前kernel版本

[root@harbor kernel]# rpm -qa | grep kernel

texlive-l3kernel-svn48022-24.oe1.noarch

kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

kernel-devel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

kernel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

三、升级kernel

[root@harbor kernel]# yum localinstall  kernel*-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64.rpm

Last metadata expiration check: 0:23:56 ago on Tue 06 Aug 2024 02:20:59 PM CST.

Dependencies resolved.

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

 Package                  Architecture       Version                                           Repository                Size

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

Installing:

 kernel                   x86_64             4.19.90-2107.6.0.0251.43.oe1.bclinux              @commandline              44 M

Upgrading:

 kernel-devel             x86_64             4.19.90-2107.6.0.0251.43.oe1.bclinux              @commandline              13 M

 kernel-tools             x86_64             4.19.90-2107.6.0.0251.43.oe1.bclinux              @commandline             324 k

 

Transaction Summary

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

Install  1 Package

Upgrade  2 Packages

 

Total size: 58 M

Is this ok [y/N]: y

Downloading Packages:

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                      1/1

  Running scriptlet: kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             1/1

  Upgrading        : kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             1/5

  Running scriptlet: kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             1/5

  Upgrading        : kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             2/5

  Running scriptlet: kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             2/5

  Installing       : kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                                   3/5

  Running scriptlet: kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                                   3/5

  Cleanup          : kernel-devel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              4/5

  Running scriptlet: kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              5/5

  Cleanup          : kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              5/5

  Running scriptlet: kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              5/5

  Running scriptlet: kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                                   5/5

  Running scriptlet: kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              5/5

  Verifying        : kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                                   1/5

  Verifying        : kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             2/5

  Verifying        : kernel-devel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              3/5

  Verifying        : kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64                                             4/5

  Verifying        : kernel-tools-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64                                              5/5

 

Upgraded:

  kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64      kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

 

Installed:

  kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

 

Complete!

 

 

 

四、确认升级后kernel包版本

[root@harbor kernel]# rpm -qa | grep kernel

kernel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

texlive-l3kernel-svn48022-24.oe1.noarch

kernel-devel-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

kernel-4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

kernel-tools-4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

 

[root@harbor kernel]# uname -r

4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

注:重启主机后新内核才会生效

五、查看系统boot所有kernel版本

[root@harbor kernel]# cat /boot/grub2/grub.cfg |grep "menuentry"

if [ x"${feature_menuentry_id}" = xy ]; then

  menuentry_id_option="--id"

  menuentry_id_option=""

export menuentry_id_option

menuentry 'BigCloud Enterprise Linux (4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64) 21.10 (LTS-SP2)' --class bigcloud --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.19.90-2107.6.0.0227.28.oe1.bclinux.x86_64-advanced-1624fa73-8ed0-4870-bfc6-d98748252a89' {

menuentry 'BigCloud Enterprise Linux (4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64) 21.10 (LTS-SP2)' --class bigcloud --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.19.90-2107.6.0.0227.28.oe1.bclinux.x86_64-advanced-1624fa73-8ed0-4870-bfc6-d98748252a89' {

menuentry 'BigCloud Enterprise Linux (0-rescue-d24f36113bef4feb89c6b7fe93b524d4) 21.10 (LTS-SP2)' --class bigcloud --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-d24f36113bef4feb89c6b7fe93b524d4-advanced-1624fa73-8ed0-4870-bfc6-d98748252a89' {

grub2-set-bootflag  grub2-set-default   grub2-set-password  grub2-setpassword

 

六、修改默认启动内核版本

[root@harbor kernel]# grub2-set-default "BigCloud Enterprise Linux (4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64) 21.10 (LTS-SP2)"

 

七、确认升级后,默认启动内核版本

[root@harbor kernel]# grub2-editenv list

saved_entry=BigCloud Enterprise Linux (4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64) 21.10 (LTS-SP2)

boot_success=0

boot_indeterminate=0

 

[root@harbor kernel]# uname -r

4.19.90-2107.6.0.0192.8.oe1.bclinux.x86_64

 

 

八、重启,启用升级后内核

[root@harbor kernel]# reboot

九、检查当前使用内核

[root@harbor kernel]# uname -r

4.19.90-2107.6.0.0251.43.oe1.bclinux.x86_64

 

标签:kernel,2107.6,4.19,oe1,64,内核,Linux,BCeuler21.10,90
From: https://www.cnblogs.com/gkhost/p/18346451

相关文章

  • Linux 中 core dump 异常的分析
    目录一、概述二、发生coredump的原因1.空指针或非法指针2.数组越界或指针越界3.数据竞争三、分析coredump的方法1.启用coredump2.触发coredump2.1因空指针解引用而崩溃2.2通过信号触发coredump3.利用gdb分析coredump一、概述在UNIX......
  • Linux: 命令速查(自用)
    Ccal[OPTION]#日历,不加选项默认显示本月日历​   e.g.,cal2024#显示2024年的日历cat[OPTION]file_name#查看文件​   e.g.,cat-n/home/lsl/test.txt|more#查看文件内容并显示行号分页进行展示(敲击空格至下一页)cd[OPTION]#切换到指定目录chgr......
  • Linux系统编程—文件操作IO
    此文章为本人学习笔记,若有错误求指正,自学推荐书籍《Linux/UNIX系统编程手册》,需要该书籍pdf文档可无偿分享。文件概述在UNIX/Linux系统中,一切皆为文件。这不仅包括普通文件和文件夹,还包括设备、进程、网络连接等。所有文件在系统中都是通过文件描述符来标识和操作的。文件分......
  • 【linux】关于qemu-img创建虚拟机前端磁盘报错
    问题描述:使用qemu-imgcreate-fqcow2-bcirros.qcow2vmhost.img20G创建虚拟机磁盘出现以下报错,报错内容:qemu-img:vmhost.img:BackingfilespecifiedwithoutbackingformatDetectedformatofqcow2.[root@ecsimages]#qemu-imgcreate-fqcow2-bcirros.qcow2vmho......
  • WSL2Linux 子系统(九)
    WSL挂载硬盘/U盘/SD卡上一篇文章《WSL2Linux子系统(八)》讲解WSL与Windows之间端口转发规则和正向端口代理。《WSL2Linux子系统(六)》中仅仅简单讲解WSL(WindowsSubsystemforLinux)挂载硬盘,本篇继续详细讲解几种常见硬盘挂载使用。挂载外部硬盘到WSL不仅可以扩......
  • Linux文件管理
    VIM编辑vi和vim命令是linux中强大的文本编辑器,由于Linux系统一切皆文件,而配置一个服务就是在修改其配置文件的参数。vim编辑器是运维工程师必须掌握的一个工具,没有它很多工作都无法完成。vim其实是vi的升级版那么vi与vim有什么区别?vi不显示高亮颜色语法vim......
  • Linux命令速查表:压缩备份命令
    ar功能说明:建立或修改备存文件,或是从备存文件中抽取文件。语法:ar[-dmpqrtx][cfosSuvV][a<成员文件>][b<成员文件>][i<成员文件>][备存文件][成员文件]补充说明:ar可让您集合许多文件,成为单一的备存文件。在备存文件中,所有成员文件皆保有原来的属性与权限。参数:指令参......
  • 【rz & rb & rz】Centos/Linux rz、rb、rz命令详细介绍
    【rz&rb&rz】Centos/Linuxrz、rb、rz命令详细介绍简介基础语法选项介绍基本用法安全事项环境变量注意事项简介        系统版本:Centos7.6        rz、rb、rz命令属于lrzsz程序的内容,是使用纠错协议通过拨号串行端口从在PC-DOS、CP/M、Unix和......
  • Qt/C++最新地图组件发布/历时半年重构/同时支持各种地图内核/包括百度高德腾讯天地图
    一、前言说明最近花了半年时间,专门重构了整个地图组件,之前写的比较粗糙,有点为了完成功能而做的,没有考虑太多拓展性和易用性。这套地图自检这几年大量的实际项目和用户使用下来,反馈了不少很好的建议和意见,经过这几年的整理,刚好趁着近期经济下行严重,抽出时间把整个地图组件重构一下......
  • Linux系统中“日志”的部分相关重要知识内容
    1.RHEL日志文件保存在哪个目录中?/var/log目录中2.什么是syslog消息和非syslog消息?Syslog信息:由syslog系统设备产生的信息,Linux系统启动和运行的过程中产生的信息非syslog消息:通过其他方式或系统设备,非syslog系统设备生成的日志信息。3.哪两个服务处理RHEL......