Arch linux lts kernel

Arch Linux User Repository

These packages allow you to have multiple versions of the Arch LTS kernel installed simultaneously. The intended use is to install the linux-lts-versioned-bin (and linux-lts-versioned-headers-bin if you use out-of-tree drivers) metapackage, using an AUR helper or otherwise in a way that automatically processes dependencies. This metapackage depends on the latest LTS versioned kernel package, but older kernel packages will remain on your system as orphaned packages to be removed later. You can find and remove them with the remove-orphaned-kernels script, which will uninstall orphaned kernel packages except those corresponding to the kernel that is currently running. If you use GRUB, you will also need to ensure its config is updated after kernels are added or removed. Installing the grub-hook package will ensure this is done automatically.

To switch from the regular Arch kernel package to these versioned packages, you can do the following (using the AUR helper yay for example):

# Remove linux, linux-headers if installed, and any out-of-tree drivers for the regular kernel: $ pacman -Rs linux-lts [linux-lts-headers] [nvidia-lts] [. ] # Install dkms versions of any out-of-tree drivers you need: $ pacman -S [nvidia-dkms] [. ] # If using GRUB, install grub-hook before installing kernels: $ yay -S grub-hook # Install the kernel metapackage, and headers metapackage if you use out-of-tree drivers: $ yay -S linux-lts-versioned-bin [linux-lts-versioned-headers-bin] 

Latest Comments

chrisjbillington commented on 2021-11-24 00:57 (UTC)

@tessaracht good to hear, and thanks for the kind words! I’m glad the packages are useful.

tessaracht commented on 2021-11-24 00:09 (UTC)

and like, thanks so much for these packages. they’re such a huge improvement over the way arch does kernels by default. who thought just breaking the running kernel on upgrade was a good idea?? XD

tessaracht commented on 2021-11-24 00:08 (UTC)

@chris: ahhh yeah! it was a change on my system that affected the makepkg config, I’ve sorted it out. no issue with the package at all, totally a local system change.

chrisjbillington commented on 2021-11-23 21:45 (UTC) (edited on 2021-11-23 21:45 (UTC) by chrisjbillington)

@tessaracht that is strange. I have .81 installed, so it did build for me. Have you tried ensuring it’s doing a cleanbuild? Does running makepkg in a fresh git clone of this AUR repo work? If makepkg fails, it might be interesting as a post-mortem to see what files are in the pkg directory after failure — that’s what zstd ought to be compressing. The fact that it is trying to compress a file called 0 is mysterious, but doesn’t to me hint at what might be going wrong.

Читайте также:  No option to boot to linux

tessaracht commented on 2021-11-23 17:23 (UTC)

seeing some weird issues installing the latest packages with yay:

==> Checking for packaging issues. ==> Creating package "linux-lts-versioned-bin". -> Generating .PKGINFO file. -> Generating .BUILDINFO file. -> Generating .MTREE file. -> Compressing package. zstd: can't stat 0 : No such file or directory -- ignored ==> ERROR: Failed to create package file. -> error making: linux-lts-versioned-bin (linux5.10.81-1-lts-bin linux-lts-versioned-bin linux5.10.81-1-lts-headers-bin linux-lts-versioned-headers-bin) 

not really sure what this indicates, but yeah, can’t upgrade to .81.

chrisjbillington commented on 2021-11-14 21:19 (UTC) (edited on 2021-11-14 21:19 (UTC) by chrisjbillington)

@G3ro, I’ve reverted the change, apologies for that. It indeed defeats the whole purpose.

For what it’s worth, here are two unusual things about this PKGBUILD that pamac might choke on:

  1. I don’t bump the pkgrel when I make changes (which is rare — this latest change was the first in a long time) — the version does not increase until the next upstream kernel is released, this is in order to make this package match arch linux-lts kernel package versions exactly.
  2. The sources array is dynamically determined based on whether the kernel packages are available from your own mirror, falling back to the arch linux archive if not.

G3ro commented on 2021-11-14 15:32 (UTC) (edited on 2021-11-14 16:18 (UTC) by G3ro)

The newest version: 5.10.79-1 wants to remove former installed kernel packages: 5.10.78 & 5.10.77 in my case.

Update: I just reverted that commit and it works again as expected.

Note: I tried to install it via pamac and pacman, both show the described behavior.

Also: It seems that I can’t install & upgrade the packages through pamac GUI anymore. It shows: «Could not generate information for package linux-lts-versioned-bin». I assume the error is on pamacs side, so I filed a bug report there as well.

chrisjbillington commented on 2021-10-30 21:47 (UTC)

This package was flagged out of date, but the latest linux-lts in [core] is not newer, so it’s not out of date yet. There’s a newer lts kernel in [testing] , but this package only tracks what’s in [core] .

chrisjbillington commented on 2020-02-28 17:54 (UTC) (edited on 2022-04-10 02:41 (UTC) by chrisjbillington)

These packages allow you to have multiple versions of the Arch LTS kernel installed simultaneously. The intended use is to install the linux-lts-versioned-bin (and linux-lts-versioned-headers-bin if you use out-of-tree drivers) metapackage, using an AUR helper or otherwise in a way that automatically processes dependencies. This metapackage depends on the latest LTS versioned kernel package, but older kernel packages will remain on your system as orphaned packages to be removed later. You can find and remove them with the remove-orphaned-kernels script, which will uninstall orphaned kernel packages except those corresponding to the kernel that is currently running. If you use GRUB, you will also need to ensure its config is updated after kernels are added or removed. Installing the grub-hook package will ensure this is done automatically.

Читайте также:  Nfs and samba in linux

To switch from the regular Arch kernel package to these versioned packages, you can do the following (using the AUR helper yay for example):

# Remove linux, linux-headers if installed, and any out-of-tree drivers for the regular kernel: $ pacman -Rs linux-lts [linux-lts-headers] [nvidia-lts] [. ] # Install dkms versions of any out-of-tree drivers you need: $ pacman -S [nvidia-dkms] [. ] # If using GRUB, install grub-hook before installing kernels: $ yay -S grub-hook # Install the kernel metapackage, and headers metapackage if you use out-of-tree drivers: $ yay -S linux-lts-versioned-bin [linux-lts-versioned-headers-bin] 

Copyright © 2004-2023 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Why and How to install the LTS kernel in Arch Linux

Arch Linux GRUB menu select lts-kernel

The LTS kernel in Arch Linux is often recommended installing if you want to make your Arch system more stable. But what is the kernel? What are the differences between the default Linux and the LTS kernels, and which one should you choose? Finally, how to install the LTS kernel in Arch Linux? All these questions are about to be answered.

What is the kernel?

The kernel is the core program of the system. It is responsible for managing memory, CPU and other hardware of the system. Many drivers are built-into the kernel. It also communicates with the installed applications.

Kernel Layout

Actually, Linux is the kernel. The desktop environment, applications and all the other stuff is just a superstructure above the kernel. So, using the word Linux is not very accurate, if you mean a distribution. For example, Android uses the Linux kernel but it is not called Linux. That is why many people say GNU/Linux when they mean Linux distributions. Linux is much simpler to say.

Why install the LTS kernel?

If you have not changed your kernel in Arch Linux, by default you have the latest stable kernel version.

The LTS (long-term support) version is advantageous if stability is your first priority. It doesn’t mean that the latest kernel, or the default kernel, is less stable, it just means that the LTS kernel won’t be updated as frequently. So, there is a smaller chance of some conflicts after you update your system. Besides, the LTS kernel doesn’t change much, so if it works fine on your system it is likely that it will keep working properly.

Читайте также:  Intel wifi 6 ax201 160mhz linux

comparison table: linux vs linux-lts in Arch Linux

On the other hand, the latest kernel is updated frequently and there are constant changes to it, so there is a higher chance of breaking something after the update. The main version of the LTS kernel doesn’t change but it keeps receiving security fixes and it may also receive some feature backports.

Installing the latest kernel is good if you want to have the latest feature, and this is what many Arch users aim for. If you have the latest hardware, it is possible that the LTS kernel may not fully support it. So, you have to use the latest kernel OS.

How to install the LTS kernel in Arch Linux

To install and activate the LTS kernel in Arch Linux, follow these steps:

    Check your what kind of kernel you have: uname -r

check kernel version in Arch Linux

sudo grub-mkconfig -o /boot/grub/grub.cfg 

terminal Arch Linux configure GRUB

Arch Linux GRUB menu

To get this GRUB menu, you may need to press SHIFT key or ESC key just when the boot is starting. Boot with the LTS kernel from the Advanced options.

Arch Linux GRUB menu select lts-kernel

terminal: check of the LTS kernel is installed in Arch Linux

sudo pacman -R linux sudo grub-mkconfig -o /boot/grub/grub.cfg 

ternimal: remove kernel in Arch Linux

After these steps, you will have only the LTS kernel in your system. If you do not remove the default kernel, Arch Linux will use the default kernel after the next reboot. If you use the latest kernel, you can install the LTS kernel as a fallback kernel. In case that something happens to your latest kernel, you can boot with the LTS kernel.

Benefits of the LTS Kernel

Personally for me, the LTS kernel has several advantages.

It works better with VirtualBox. I had some problems with the latest kernel and VirtualBox because the kernel updates were more frequent than the updates for VirtualBox. Once VirtualBox just stopped working and to fix it, I needed to switch to an older kernel.

It’s better for a multi-boot system. I also like the infrequent updates of the LTS kernel. I multi-boot my Arch Linux with several other Linux OSes and I need to update my GRUB manually every kernel update. As the LTS kernel is not updated as frequently as the latest kernel, I don’t have to update my GRUB often with the LTS kernel.

You may also like these tips and tricks after installing Arch Linux. Thanks for reading.

Average Linux UserFollow I am the founder of the Average Linux User project, which is a hobby I work on at night. During the day I am a scientist who uses computers to analyze genetic data.

Источник

Оцените статью
Adblock
detector