One of the reasons people use Arch Linux is that it is an advanced version of roll. You get most of the software and the Linux kernel before users of other distributions.

However, this does not mean that you should always use the last kernel of the main line. There are different kernel options, and I will show you how to change the kernel in Arch Linux.

Different types of kernels available for Arch Linux

First of all, I would like to introduce you to the different types of Linux kernels that are available to you as an Arch user.

Main core (packet name: linux)

This is the last stable Linux kernel. Most people use this kernel because it is the latest version available.

LTS core (package name: linux-lts)

The linux-lts package offers you the latest long-term support for the Linux kernel. There is no predefined lifecycle for the LTS kernel, but you can be sure that you have been using the same version of the kernel for much longer.

Usually you don’t break anything by repairing the core, but you can’t break it. If your hardware is not the latest on the market, you can take advantage of advanced software with increased stability by installing a slightly older LTS kernel.

Hardened core (package name: hardened linux)

For safety-conscious users, there is a simplified version of the latest stable kernel. Note that many packages will not work with this kernel.

Core with performance orientation (packaging name: linux lenses)

If you want to get the most out of your system, you can use the Zen kernel, which is essentially a spin-off from the last kernel, optimizing throughput and power consumption.

How to change the kernel in Arch Linux

Now that you know the different kernel choices, let’s see how to change the kernel in Arch Linux.

It’s a two-step process:

  1. Install the Linux kernel of your choice
  2. Configuring the grub configuration file to add a newly installed kernel

Don’t worry, I’ll show you the steps in detail.

Check the kernel version in arch Linux with this command:

unsurpassed -r

If it’s just the number

To include a kernel in the arc, simply install the kernel you want to use and configure the grub configuration file.

Step 1: Install a core of your choice

You can use the pacman command to install the Linux kernel of your choice. All you need to know is the name of the package.

You can also install different types of Linux kernels at the same time. You can select the kernel you want to use from the Grub menu.

For the last stable core:

pacman linux ship

For the latest LTS kernel:

sudo pacman -S linux-lts

For the last stable core with hardened stains:

pacman hardened ship -S linux

To get a nerve core:

sudo pacman -S linux-zen

Step 2: Modify the grub configuration file to add additional options to kernel

Arch Linux uses the latest kernel version by default. Additional versions of the kernel are available under Advanced Options :

Arch Linux Grub Additional Linux kernels are available under this option

However, I prefer to do it a bit different and (in my opinion) a bit better. That’s what I do:

  • Disable the Grub submenu so that all available kernel versions are shown on the main screen (not in the Advanced Options section).
  • Configure grub to remember the last record loaded in the kernel and use it by default on the next boot.

Sounds a lot better, doesn’t it?

To do this, you need to edit the GRUB configuration file. All configuration files in their entirety can be found in /etc.

Open your device and change the settings file in the text editor on your device. I’m using a nano-editor:

sudo nano /etc/defect/grub

Bush configuration sheet

As you can see, I have adjusted the above value, but added two extra lines, so that the end result looks like this

GRUB_DISABLE_SUBMENU=y
GRUB_DEFAULT=stored
GRUB_SAVEDEFAULT=true

The first and extra lines are used to disable the GRUB submenu. It’s easier for me to see all my carrots directly on the GRUB screen without having to go to the submenu with extra options.

The second line is used to store the last kernel entry.

Finally, make sure that the GRUB is on the last saved record by default.

Save and exit the configuration file.

Step 3: GRUBRegeneration of the configuration file

You need to regenerate the configuration file for the changes to take effect. To do this, open the terminal and execute the following command:

$ ship grabconig -o /boot/grub/grub.cfg

If this sounds familiar, you used this command during the installation process of Arch Linux.

Reboot the Linux system and select the kernel you want to use!

Conclusion

You don’t have to worry about updating the kernel in Arch Linux. If there are updates for your selected kernel, it will be installed together with the system updates. I think you already know how to update the Arch-Linux system.

Migrating the kernel to Arch Linux is a simple process with several options tailored to your needs. I think the above method is the safest and simplest, since you don’t have to remove the kernel from your system. If you choose the last kernel, it would be a good idea to install the LTS kernel in case of panic.

I hope you enjoyed this advice from Arch-Linux. Stay at It’s FOSS for more tips and information.

 

Do you like what you read? Please share it with others.how to read an expiration date code,expiry date example,expiration date with only month and year,expiry date vs expiration date,expiry date calculator,fda expiration date format,expiration date of cosmetics,expiration date codes,expiry date,should i renew dell supportassist,dell service plan extension cost,what is dell service plan,dell support after warranty expired,your service plan has expired contact dell,how to turn off dell supportassist in bios,manufacturer warranty law,product warranty example,types of warranty,limited warranty definition,extended warranty ftc,reasonable time for repair under warranty,he is expired meaning in hindi,has expired or has been expired,had expired,expired or passed away,he was expired meaning in telugu,expired use in sentences,oppo warranty period,oppo imei number tracking,realme warranty extend,redmi warranty check,vivo warranty check online india,realme model check code,hp care pack registration,hp extended warranty check,hp care pack price,hp care pack reddit,hp warranty extension toll free number,hp care pack rebate,how to check expiry date of cosmetics,expiration period