如何将CentOS 6中的内核升级到最新版本?


1

这给了我很多问题,即使在重新上电后也没有使用最新产品。

[root@server ~]# uname -r
2.6.32-431.1.2.0.1.el6.x86_64
[root@server ~]# cat /boot/grub.conf
cat: /boot/grub.conf: No such file or directory
[root@server ~]# cat /boot/grub/grub.conf
cat: /boot/grub/grub.conf: No such file or directory
[root@server ~]# yum reinstall kernel
Running Transaction
  Installing : kernel-2.6.32-696.20.1.el6.x86_64                                                                                                                                                         1/1
  Verifying  : kernel-2.6.32-696.20.1.el6.x86_64                                                                                                                                                         1/1

Installed:
  kernel.x86_64 0:2.6.32-696.20.1.el6

Complete!
[root@server ~]# less /etc/grub.conf
/etc/grub.conf: No such file or directory
[root@server ~]# poweroff
Broadcast message from root@server
        (/dev/pts/0) at 23:11 ...

The system is going down for power off NOW!
Chloe@xps ~/workspace/
$ ssh root@server
Last login: Thu Feb 15 23:07:40 2018 from 
[root@server ~]# uname -r
2.6.32-431.1.2.0.1.el6.x86_64
[root@server ~]# rpm -q kernel
kernel-2.6.32-573.18.1.el6.x86_64
kernel-2.6.32-504.8.1.el6.x86_64
kernel-2.6.32-431.1.2.0.1.el6.x86_64
kernel-2.6.32-696.20.1.el6.x86_64
[root@server ~]#

CentOS 6


1
像CentOS 6这样的企业级服务器操作系统将在其完整的生命周期内保持稳定的内核版本。CentOS 6内核-2.3.32不断更新安全补丁。此外,还添加了后续内核版本的新功能。新的“司机”等
Knud Larsen

Answers:


0

我列出了所有内核并删除了所有其他内核。

[root@server ~]# rpm -q kernel
kernel-2.6.32-573.18.1.el6.x86_64
kernel-2.6.32-504.8.1.el6.x86_64
kernel-2.6.32-431.1.2.0.1.el6.x86_64
kernel-2.6.32-696.20.1.el6.x86_64
[root@server ~]# rpm --erase kernel-2.6.32-573.18.1.el6.x86_64 kernel-2.6.32-504.8.1.el6.x86_64 kernel-2.6.32-431.1.2.0.1.el6.x86_64
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.