Arch Linux: How to switch to Long Term Support (LTS) kernel

So you have your Arch Linux ready to rock and be customized. However, as what the internet says about Arch, they are a bleeding edge Linux Distribution. Meaning they are always updated which is a good feature. However, fast updates come with a great price. Packages are sometimes incompatible with one another. This is also true with the kernel. Therefore, it is recommended to move to Long Term Support kernel so that we can get a better stability that we want in a bleeding edge distribution like Arch Linux.

Migrating to LTS kernel is quite easy. All you have to do is download the LTS kernel, install it, and configure grub to use the LTS kernel.

Download and install the LTS kernel

To do this type

sudo pacman -S linux-lts linux-lts-headers

Linux LTS kernel

Linux LTS kernel

Configure grub

Next is we need to configure our boot loader (grub) to use the new kernel whenever we start our machine. Type

nano /etc/default/grub

to edit the grub configuration file. Now find the following in the configuration file and edit (uncomment or add if not found in the configuration file) it with following values:

  • GRUB_DEFAULT=saved
  • GRUB_SAVEDEFAULT=true
  • GRUB_DISABLE_SUBMENU=y

This configuration settings will enable grub to remember the last kernel you used when booting up the computer and use it again everytime you boot the computer. After you finished modifying the configuration file, issue a

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

to push changes to grub itself.

Verify changes

To verify is the new kernel works correctly, type

uname -r

This will print in the terminal the current kernel version you are running. Take note of that and do a reboot and select the new kernel. After a reboot, type

uname -r

again in the terminal to see if the new LTS kernel is now being used by the system.

Congratulations!

You have just modified Arch Linux to use the LTS kernel. Cheers!


Source:

Leave a Reply

Be the First to Comment!

Speak up you comment ninja! Let's talk. Leave a reply.

wpDiscuz
shares
%d bloggers like this: