How To Install Linux Kernel 4.9 in openSUSE
Linux Kernel 4.9 has been released a week ago, and we have published a step by step guide about Installing Linux Kernel 4.9 yesterday. For details, look at the link below.
Today, in this tutorial, we are going to see how to install Linux Kernel 4.9 in openSUSE. I have tested this guide in openSUSE 13.2 desktop. It might work in other older versions.
Install Linux Kernel 4.9 in openSUSE
First let us check the currently installed Kernel version using command:
Linux linux.suse 3.16.7-29-desktop #1 SMP PREEMPT Fri Oct 23 00:46:04 UTC 2015 (6be6a97) x86_64 x86_64 x86_64 GNU/Linux
As you see in the above outputs, the currently installed Kernel version is 3.16.7-29.
Now, let us make the system to support multiple kernel configurations. That means, our system should contain both latest and oldest Kernel (the one that ships with openSUSE).
To do so, Edit /etc/zypp/zypp.conf file:
sudo nano /etc/zypp/zypp.conf
Find the following lines and modify them as shown below.
multiversion = provides:multiversion(kernel) [...] multiversion.kernels = latest,latest-1,running,oldest [...]
Save and close the file.
Then, add openSUSE Kernel HEAD repository that contains the latest Linux Kernel. At the time of writing, the latest Kernel version is 4.9.
To add Kernel HEAD repository, run:
sudo zypper addrepo -f http://download.opensuse.org/repositories/Kernel:/HEAD/standard/ kernel-repo
Adding repository 'kernel-repo' ..........................................[done] Repository 'kernel-repo' successfully added Enabled : Yes Autorefresh : Yes GPG Check : Yes URI : http://download.opensuse.org/repositories/Kernel:/HEAD/standard/
Finally, run the following command to do distribution upgrade only from the Kernel HEAD repository. It means the Kernel will only be upgraded to the latest version.
sudo zypper dist-upgrade -r kernel-repo
Type “a” without quotes to enable Kernel-repo and add the GPG key.
Retrieving repository 'kernel-repo' metadata --------------------[|] New repository or package signing key received: Repository: kernel-repo Key Name: Kernel OBS Project <Kernel@build.opensuse.org> Key Fingerprint: 4529410A B52F94C4 03BAB484 ECEEF210 03579C1D Key Created: Wed 22 Apr 2015 05:55:51 PM IST Key Expires: Fri 30 Jun 2017 05:55:51 PM IST Rpm Name: gpg-pubkey-03579c1d-5537934f Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a
Once the upgrade process is completed, reboot your system to use the latest Kernel.
Let us check the Kernel version using command:
Linux linux.suse 4.9.0-2.gfd5379c-default #1 SMP PREEMPT Wed Dec 14 16:54:56 UTC 2016 (fd5379c) x86_64 x86_64 x86_64 GNU/Linux
Congratulations! The latest Linux Kernel 4.9 has been successfully installed in openSUSE system.
That’s all for now. If you find this tutorial useful, please share it on your social networks and support OSTechNix.