[HowTo] Install the latest Linux Kernel

Write tutorials here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this
Post Reply
User avatar
cpedretti
Level 2
Level 2
Posts: 95
Joined: Tue Mar 10, 2020 12:06 am

[HowTo] Install the latest Linux Kernel

Post by cpedretti »

The Linux Kernel history => https://en.wikipedia.org/wiki/Linux_kernel

The Linux Kernel's => https://www.kernel.org/


To know how kernel are installed:

Code: Select all

uname -a

Good news LMDE4 already has backports repository activated by default, we use later the backports sources to update our kernel.


To search a newest kernel:

Code: Select all

apt search linux-image

In the output we will see a lot of kernels, but we have interest to the latest, at this time the kernel 5.7:

Image


Lets do it and install the latest kernel:

Code: Select all

apt install linux-image-5.7.0-0.bpo.2-amd64 linux-headers-5.7.0-0.bpo.2-amd64 -t buster-backports -y

A reboot is needed to boot on the new kernel:

Code: Select all

reboot

We can check now:

Code: Select all

uname -a

The output:

Code: Select all

Linux my-pc 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64 GNU/Linux

let's take it a step further by removing the old kernels, in general it is advisable to keep 2 kernels in case there is a problem with one of them.

To view the installed kernel:

Code: Select all

dpkg --list 'linux-image*'
In the output you will see how kernel you can purge, in my case i keep the 4.19 and the 5.7 and purge the 5.6.


Example to purge a kernel:

Code: Select all

apt autoremove --purge linux-image-5.6.0-0.bpo.2-amd64 linux-headers-5.6.0-0.bpo.2-amd64 -y

We need to upgrade the grub with the changes we made:

Code: Select all

update-grub2

After an reboot in the boot menu, select advanced options, you can also check the kernels who are usable.


In case if you have a graphic card using open firmwares you'll need to update your kernel with it, just check this tutorial
Last edited by cpedretti on Wed Dec 30, 2020 7:40 am, edited 6 times in total.
AMD Ryzen 7 3700X - 32GB DDR4 - Sapphire RX570 8GB - SSD SAMSUNG EVO 860/HDD Toshiba - Mobo Gigabyte AORUS ELITE B450 - PSU Gigabyte 750W Gold - Case Zalman X3 White

Mint 20.1 Kernel 5.8
jwiz
Level 3
Level 3
Posts: 186
Joined: Tue Dec 20, 2016 6:59 am

Re: [HowTo] Install the latest Linux Kernel

Post by jwiz »

cpedretti wrote:
Fri Aug 14, 2020 7:46 am
The Linux Kernel => https://en.wikipedia.org/wiki/Linux_kernel
...
Good news LMDE4 already has backports repository activated by default, we use later the backports sources to update our kernel.
...
Lets do it and install the latest kernel:

Code: Select all

apt install linux-image-5.7.0-0.bpo.2-amd64 apt install linux-headers-5.7.0-0.bpo.2-amd64 -y
...
I'd propose to use the respective meta-package instead : apt install linux-image-amd64 -y
User avatar
antikythera
Level 12
Level 12
Posts: 4174
Joined: Thu Jul 02, 2020 12:52 pm

Re: [HowTo] Install the latest Linux Kernel

Post by antikythera »

LanceM wrote:
Thu Mar 19, 2020 9:11 pm
Backports are all ready enabled on LMDE4, for optain a update of your kernel make :

Code: Select all

apt update && apt install -t buster-backports linux-image-amd64 -y && apt install -t buster-backports linux-headers-amd64 -y && apt install -t buster-backports firmware-linux firmware-linux-nonfree -y && reboot
Thanks! It worked perfectly. I removed the SSD from the Intel i5-8500 and put it in the 3400G machine after getting the 5.4 kernel. Presto! Picasso drivers installed and working perfectly. Much appreciated!
this method covers backport metapackages and will deliver kernel 5.7 bpo2 currently. If you do want a specific branch, say kernel 5.4 now then search what kernel and kmod packages are already installed and apply the equivalents for the newest bpo package for that branch as per the longer instructions above.

I would recommend using the bpo linux firmware packages too though.
User avatar
cpedretti
Level 2
Level 2
Posts: 95
Joined: Tue Mar 10, 2020 12:06 am

Re: [HowTo] Install the latest Linux Kernel

Post by cpedretti »

jwiz wrote:
Fri Aug 14, 2020 9:14 am
cpedretti wrote:
Fri Aug 14, 2020 7:46 am
The Linux Kernel => https://en.wikipedia.org/wiki/Linux_kernel
...
Good news LMDE4 already has backports repository activated by default, we use later the backports sources to update our kernel.
...
Lets do it and install the latest kernel:

Code: Select all

apt install linux-image-5.7.0-0.bpo.2-amd64 apt install linux-headers-5.7.0-0.bpo.2-amd64 -y
...
I'd propose to use the respective meta-package instead : apt install linux-image-amd64 -y
About backports

You are running Debian stable because you prefer the stable Debian tree. It runs great, there is just one problem: The software is a little bit outdated compared to other distributions. That is where backports come in.

Backports are recompiled packages from testing (mostly) and unstable (in a few cases only, e.g. security updates) in a stable environment so that they will run without new libraries (whenever it is possible) on a Debian stable distribution

Backports cannot be tested as extensively as Debian stable, and backports are provided on an as-is basis, with risk of incompatibilities with other components in Debian stable. Use with care!

It is therefore recommended to select single backported packages that fit your needs, and not use all available backports.

Source
AMD Ryzen 7 3700X - 32GB DDR4 - Sapphire RX570 8GB - SSD SAMSUNG EVO 860/HDD Toshiba - Mobo Gigabyte AORUS ELITE B450 - PSU Gigabyte 750W Gold - Case Zalman X3 White

Mint 20.1 Kernel 5.8
User avatar
cpedretti
Level 2
Level 2
Posts: 95
Joined: Tue Mar 10, 2020 12:06 am

Re: [HowTo] Install the latest Linux Kernel

Post by cpedretti »

the latest stable linux kernel is available => 5.9

To update it just follow the HowTo up there.
AMD Ryzen 7 3700X - 32GB DDR4 - Sapphire RX570 8GB - SSD SAMSUNG EVO 860/HDD Toshiba - Mobo Gigabyte AORUS ELITE B450 - PSU Gigabyte 750W Gold - Case Zalman X3 White

Mint 20.1 Kernel 5.8
DAMIEN1307
Level 12
Level 12
Posts: 4138
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: [HowTo] Install the latest Linux Kernel

Post by DAMIEN1307 »

Why bother...kernel 5.9 reached EOL, (End of Life), Dec.22nd 2020...DAMIEN

https://itsubuntu.com/linux-kernel-5-9- ... d-of-life/
ORDO AB CHAO
"I refuse to be assimilated, I refuse to become one with the Borg Collective"
User avatar
cpedretti
Level 2
Level 2
Posts: 95
Joined: Tue Mar 10, 2020 12:06 am

Re: [HowTo] Install the latest Linux Kernel

Post by cpedretti »

DAMIEN1307 wrote:
Wed Dec 30, 2020 8:01 am
Why bother...kernel 5.9 reached EOL, (End of Life), Dec.22nd 2020...DAMIEN

https://itsubuntu.com/linux-kernel-5-9- ... d-of-life/
Thanks for the info, but for the moment the 5.10 kernel is not yet available, see attached screenshot.

Image


Here we can see on the https://www.kernel.org/ Site that the 5.10.4 are the latest stable availlable, but in my example we are working on LMDE not Mint, I think that's why the latest kernel is not yet offered.

You will have to wait while waiting for the last stable kernel to be made available on LMDE.
AMD Ryzen 7 3700X - 32GB DDR4 - Sapphire RX570 8GB - SSD SAMSUNG EVO 860/HDD Toshiba - Mobo Gigabyte AORUS ELITE B450 - PSU Gigabyte 750W Gold - Case Zalman X3 White

Mint 20.1 Kernel 5.8
Post Reply