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 Linux kernel

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces "how to upgrade the Linux kernel". In the daily operation, I believe many people have doubts about how to upgrade the Linux kernel. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to upgrade the Linux kernel". Next, please follow the editor to study!

Check the current kernel to open the terminal execution:

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

There are many addresses for downloading the kernel, and I mainly use the following two:

Download linux kernel on github

Download linux kernel from ubuntu's warehouse

Which files does the kernel need to download?

Ubuntu 18.04 already uses version 4.15 kernel, and linux mint 19 also uses version 4.15 kernel.

There is a difference in installation between 4.16 and 4.17 in Generation 4:

Here are the file selections for version 4.16:

Here are the file selections for version 4.17:

The installation sequence is installed in the form of sudo dpkg-I *. Deb.

First install linux-headers-4.17.0-0417004.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

If it is version 4.16 or earlier, this file is not available and does not need to be installed.

Restart after the installation is complete.

Delete redundant kernel 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. Uninstall the kernel

You can see that the system has several kernel versions installed, including headers and image, which can be removed to uninstall the old kernel.

For example, if we delete the 4.4.0-22 kernel, we can see that there is only headers on it, 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 and then restart the computer.

At this point, the study on "how to upgrade the Linux kernel" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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