加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Debian Stretch升级当前最新稳定版内核

发布时间:2020-12-14 04:44:31 所属栏目:大数据 来源:网络整理
导读:Why update kernel ? Update the kernel to new version fixed some newer hardware has no driver software,For me,My earphone has current noice. Someone tell me that is low version kernel trouble. So I search for some article and summary useful

Why update kernel ?

Update the kernel to new version fixed some newer hardware has no driver software,For me,My earphone has current noice. Someone tell me that is low version kernel trouble. So I search for some article and summary useful things,then I wrote this blog.

Update Linux Kernel Cookbook

Before installing a newer kernel,it’s important that we upgrade installed packages to their newer versions in the backports-repo in order to be sure that dependencies will remain unbroken.

$ sudo apt-get -t stretch-backports upgrade

After the upgrade,choose a kernel from the list and install it with apt.

$ sudo apt-cache search linux-image

Most of the installations would want the kernel without suffix. The rt-suffix stands for realtime and is mostly interesting for embedded projects or machines that will drive industrial hardware. dbg stands for debugging.

Here we chose linux-image-4.19.0-0.bpo.5-amd64 and linux-headers-4.19.0-0.bpo.5-amd64,the newest after 2019-05-18

$ sudo apt-get -t stretch-backports install linux-image-4.19.0-0.bpo.5-amd64 linux-headers-4.19.0-0.bpo.5-amd64

After the installation,reboot your system and select the newly installed kernel from the selection displayed in GRUB. Debian selects the new kernel by default.

Uninstall Linux Kernel on Debain

To check which kernels are currently installed:

$ dpkg --get-selections|grep linux-image
linux-image-4.19.0-0.bpo.5-amd64        install
linux-image-4.9.0-9-amd64           install
linux-image-amd64               install

Uninstall the old one:

$ sudo apt-get remove linux-image-4.9.0-9-amd64

That should be all it takes in order to install a recent kernel and cleanup older kernels on a Debian system. Not so difficult as you thought probably :)

Reference:
http://jensd.be/818/linux/install-a-newer-kernel-in-debian-9-stretch-stable
https://kantor.vivaldi.net/?p=92

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读