Unofficial repo for older LTS kernels

Older LTS kernels

Following on from the above thread, I’m thinking about building I have built LTS kernels from the AUR to make them available in an unofficial user repo.

My current builds are now available here: https://repo.m2x.dev/current/kernel-lts/x86_64/

These are built directly from the AUR packaging files. YMMV etc.

This repo has the same stepped cadence available as the other repos if you are already using one of those (make sure you don’t mix cadences).

How to use

Add this to your /etc/pacman.conf:

[kernel-lts]
Server = https://repo.m2x.dev/current/$repo/$arch

Import my key:

sudo pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-key 76C6E477042BFE985CC220BD9C08A255442FAFF0
sudo pacman-key --lsign 76C6E477042BFE985CC220BD9C08A255442FAFF0

then install whichever kernel takes your fancy:

mkinitcpio

With version 30 of mkinitcpio and linux-lts=5.10 hitting the Arch repos, the default initramfs compression was switched to zstd. Older kernels may not support this so make sure to edit your /etc/mkinitcpio.conf to set a compression method the kernel does support (e.g. gzip). I backported zstd support to the 5.4 package. Older kernels, not so much.

Popularity contest

Would you like older LTS kernels prebuilt and available in a repo?
  • Yes, and I would use it
  • Yes, it might be useful for someone else
  • No

0 voters

17 Likes

I need 4.19 on my laptop, so I might just use this. Thanks!

2 Likes

best to keep it simple to set only oldest :slight_smile: , and call Linux-legacy :slight_smile:

I don’t think kernel 3.16 is maintained any more… :crazy_face:

most lts is 2 years unles an distro prelonge the life…

It depends, quite a few are six years:

Version Maintainer Released Projected EOL
5.4 Greg Kroah-Hartman & Sasha Levin 2019-11-24 Dec, 2025
4.19 Greg Kroah-Hartman & Sasha Levin 2018-10-22 Dec, 2024
4.14 Greg Kroah-Hartman & Sasha Levin 2017-11-12 Jan, 2024
4.9 Greg Kroah-Hartman & Sasha Levin 2016-12-11 Jan, 2023
4.4 Greg Kroah-Hartman & Sasha Levin 2016-01-10 Feb, 2022
1 Like

yeah that 2 years release is not so long ago before was longer but im a noob on such info :laughing:

Officially added to the Arch wiki page:

:partying_face:

13 Likes

linux-lts54 is now also available in the AUR:

https://aur.archlinux.org/packages/linux-lts54/

Watch out for upcoming changes to mkinitcpio from version 30:

If your LTS kernel does not support a zstd initramfs then make sure to edit your /etc/mkinitcpio.conf and explicitly set a supported compression method (e.g. gzip).

3 Likes

What’s that linux-nitrous btw?

Description : Modified Linux kernel optimized for Haswell (and newer) compiled using clang (tagged git version), with Clear Linux patches

Sorry, yay -Si linux-nitrous answered it :laughing:

OT
1 Like

Thanks. I have to use 5.4 with my Intel HD graphics 530. All newer kernels crash when watching videos and only hard reset helps.

2 Likes

Just to highlight in this thread too, linux-lts510 is now also available in the AUR and this repo:

https://aur.archlinux.org/packages/linux-lts510/

3 Likes