The kernel is the heart of the Ubuntu or any other Linux-based Operating System. It controls hardware resources, manages processes, memory, and devices, and handles input/output operations. It acts as a bridge between software and hardware, ensuring efficient utilization of resources and providing a stable and secure foundation for running applications and executing system tasks.
Being a core component of the system, Kernel needs to be updated to have the smooth performance of Ubuntu. Keeping this fact in view, this post will address the essential steps to update the Linux kernel of Ubuntu to the latest one.
Note: The commands in the post are executed on Ubuntu 22.04, the latest LTS.
How to Update My Ubuntu Kernel to the Latest One?
The kernel of Ubuntu will be updated using the mainline application, which is the most recommended method. You have to install the mainline application by adding the PPA and then install the latest kernel version from that application. The steps are as follows:
Step 1: Check the Current Kernel Version
Open a terminal and run the following command to determine the current kernel version installed on your system:
$ uname -r
Currently, my Ubuntu system is equipped with the Kernel version 5.19.0-41.
Step 2: Add the PPA for the Mainline Application
The GUI of the mainline application can be installed on Ubuntu using the PPA. Use the command provided below:
$ sudo add-apt-repository ppa:cappelikan/ppa
Step 3: Update Your Package Manager
It’s recommended to update your package manager’s cache before proceeding:
$ sudo apt update
Step 4: Install the Mainline Application
Now, it’s time to install the mainline application via the command below:
$ sudo apt install mainline
Step 5: Launch Mainline
Search for the mainline in the Ubuntu applications:
Once the application is launched, you can find the currently installed and the latest available kernel versions as highlighted below:
Step 6: Install the Latest Kernel
Select the latest available kernel version and click on the Install button available on the right-side panel:
The installation process will take a few moments, and the following done message will be displayed on the screen:
Step 7: Reload Kernel/Reboot and Verify
On the Ubuntu mainline application’s right side panel is an option for Reload. Click on it to reload the latest kernel files:
It is recommended to reboot the system as well and then use the uname -r command to check the latest version:
$ uname -r
The screenshot shows that the kernel is now updated to 6.3.6.
Like other Linux systems, Kernel in Ubuntu plays a crucial role in processing various operations on the system. It bridges software and hardware, providing a stable and secure foundation for running applications and executing system tasks.
Use the latest Kernel version on your Ubuntu system, which can be done by installing the GUI of the mainline application and installing the latest available version. Once installed, you can easily switch to the latest version with a reboot. All the essential steps and commands are practically demonstrated in this post.
For more Linux tips and tricks, keep visiting Linux Genie.