linux内核centos6.9,CentOS6.9 内核升级|linux内核升级

如果机器已经联网,直接利用包管理工具更新,需要注意的是现在3.0以上的内核引入了签名机制,需要导入签名的key,参考步骤如下:

[root@test01 ~]# uname -r   #内核查看确认

2.6.32-696.16.1.el6.x86_64

[root@test01 ~]#

[root@test01 ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org    //导入key

[root@test01 ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noa

rch.rpm #安装elrepo的yum源

Retrieving http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

Preparing...                ########################################### [100%]

1:elrepo-release         ########################################### [100%]

[root@test01 ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y   #安装内核操作,操作记录如下:

Loaded plugins: fastestmirror

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Setting up Install Process

Loading mirror speeds from cached hostfile

* base: mirrors.cn99.com

* elrepo: mirrors.tuna.tsinghua.edu.cn

* elrepo-kernel: mirrors.tuna.tsinghua.edu.cn

* epel: mirrors.tongji.edu.cn

* extras: mirrors.cn99.com

* updates: mirrors.cn99.com         | 2.9 kB     00:00

elrepo/primary_db                                                                                                                     | 675 kB     00:00

elrepo-kernel                                                                                                                         | 2.9 kB     00:00

elrepo-kernel/primary_db                                                                    |  18 kB     00:00

Resolving Dependencies

--> Running transaction check

---> Package kernel-lt.x86_64 0:4.4.101-1.el6.elrepo will be installed

--> Finished Dependency Resolution

Install       1 Package(s)

Total download size: 38 M

Installed size: 174 M

Downloading Packages:

kernel-lt-4.4.101-1.el6.elrepo.x86_64.rpm                                                    |  38 MB     00:29

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

Installing : kernel-lt-4.4.101-1.el6.elrepo.x86_64     1/1

Verifying  : kernel-lt-4.4.101-1.el6.elrepo.x86_64    1/1

Installed:

kernel-lt.x86_64 0:4.4.101-1.el6.elrepo

Complete!

[root@test01 ~]#

[root@test01 ~]# vim /etc/grub.conf

温馨提示

感谢您浏览《CentOS6.9 内核升级|linux内核升级》

现邀请您关注我们的【5分享】(fivsha)公众号,你将获取更多的IT资源。

如果有疑问也可以在公众号里面回复您遇到的问题或是点击在线帮助联系我们。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值