Linux ❀ 系统内核升级教程

Linux系统内核升级教程

首先查看自己的内核信息:
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

将kernel-lt-4.4.219-1.el7 elrepo. x86 64. rpm文件导入/root目录
[root@localhost ~]# rpm -qa lrzsz
lrzsz-0.12.20-36.el7.x86_64
[root@localhost ~]# rz

[root@localhost ~]# pwd
/root

[root@localhost ~]# ll | grep kernel-lt-4.4.219-1.el7.elrepo.x86_64.rpm
-rw-r–r--. 1 root root 41161676 6月 28 10:18 kernel-lt-4.4.219-1.el7.elrepo.x86_64.rpm

[root@localhost ~]# yum install -y kernel-lt-4.4.219-1.el7 elrepo. x86 64. rpm

[root@localhost ~]# grub2-set-default 0

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file …
Found linux image: /boot/vmlinuz-4.4.219-1.el7.elrepo.x86_64
Found initrd image: /boot/initramfs-4.4.219-1.el7.elrepo.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.10.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.10.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f968ef350cd04cd1b19a7091ea0e75c2
Found initrd image: /boot/initramfs-0-rescue-f968ef350cd04cd1b19a7091ea0e75c2.img
done
[root@localhost ~]# reboot

重启完成后查看内核信息:
[root@localhost ~]# uname -a
Linux localhost.localdomain 4.4.219-1.el7.elrepo.x86_64 #1 SMP Sun Apr 12 16:13:06 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

你可能感兴趣的:(Linux)