Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upgrade the kernel of Linux system

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to upgrade the Linux system kernel, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

View current kernel Open Terminal Execution:

vincent@dell-Inspiron-7559 Dir:~ ····$uname -r 4.15.0-32-generic123 The current computer kernel is version 4.15. Generally, we upgrade the kernel to a higher version.

There are a lot of addresses for downloading kernels, but I mainly use the following two:

Download Linux kernel on github

Download Linux kernel from ubuntu repository

What files does the kernel need to download?

Ubuntu 18.04 uses kernel version 4.15, and Linux mint 19 uses kernel version 4.15.

There are installation differences between versions 4.16 and 4.17:

Here are the file selections for version 4.16:

Here are the file selections for version 4.17:

The installation sequence is sudo dpkg -i ***.deb.

First install linux-headers-4.17.0-041700_4.17.0-041700.201806041953_all.deb

Install linux-headers-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

Install linux-modules-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

install linux-image-unsigned-4.17.0-041700-generic_4.17.0-041700.201806041953_amd64.deb

For kernel versions 4.16 and earlier, this file is not available and does not need to be installed.

Restart after installation is complete.

Remove redundant kernels 1. View the kernel installed on the current system

dpkg --get-selections| grep linux1 console-setup-linux install libselinux1:amd64 install libselinux1:i386 install linux-base install linux-firmware install linux-generic install linux-headers-4.4.0-22 install linux-headers-4.4.0-22-generic install linux-headers-4.4.0-24 install linux-headers-4.4.0-24-generic install linux-headers-4.4.0-28 install linux-headers-4.4.0-28-generic install linux-headers-4.4.0-31 install linux-headers-4.4.0-31-generic install linux-headers-4.4.0-34 install linux-headers-4.4.0-34-generic install linux-headers-4.4.0-36 install linux-headers-4.4.0-36-generic install linux-headers-4.4.0-38 install linux-headers-4.4.0-38-generic install linux-headers-4.4.0-42 install linux-headers-4.4.0-42-generic install linux-headers-generic install linux-image-4.2.0-21-generic deinstall linux-image-4.2.0-22-generic deinstall linux-image-4.4.0-31-generic deinstall linux-image-4.4.0-34-generic install linux-image-4.4.0-36-generic install linux-image-4.4.0-38-generic install linux-image-4.4.0-42-generic install linux-image-extra-4.2.0-21-generic deinstall linux-image-extra-4.4.0-31-generic deinstall linux-image-extra-4.4.0-34-generic deinstall linux-image-extra-4.4.0-36-generic deinstall linux-image-extra-4.4.0-38-generic install linux-image-extra-4.4.0-42-generic install linux-image-generic install linux-libc-dev:amd64 install linux-sound-base install pptp-linux install syslinux install syslinux-common install syslinux-legacy install util-linux install12345678910111213141516171819202122232425262728293031323334353637383940414243442. Unloading the kernel

You can see that the system has multiple kernel versions installed, including headers and images, which can be removed to uninstall older kernels.

For example, delete the 4.4.0-22 kernel, we see that there are only headers above, so we can do this:

sudo apt-get remove --purge linux-headers-4.4.0-22 sudo apt-get remove --purge linux-image-4.2.0-22-generic123 and so on.

Then the terminal executes:

sudo apt-get autoclean sudo apt-get autoremove12 Then restart your computer.

The above is "Linux system kernel how to upgrade" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report