Linux Kernel 4.12 final version has been released few days ago. We already have made a guide that described how to install it in CentOS and Ubuntu operating systems. Now, in this brief tutorial, we are going to see how to install Linux Kernel 4.12 in openSUSE.
If you are interested to try out the latest Kernel in YUM-based and APT-based systems, refer the following link.
Install Linux Kernel 4.12 in openSUSE
First let us check the currently installed Kernel version using command:
uname -r
Sample output:
3.16.7-29-desktop
Or,
uname -a
Sample output:
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 vi /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.12.
To add Kernel HEAD repository, run:
sudo zypper addrepo -f http://download.opensuse.org/repositories/Kernel:/HEAD/standard/ kernel-repo
Sample output:
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/
Next, 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.
Sample output:
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:
uname -r
Sample output:
4.12.0-1.ge2f4d0f-default
Or,
uname -a
Sample output:
Linux linux.suse 4.12.0-1.ge2f4d0f-default #1 SMP PREEMPT Tue Jul 4 14:46:48 UTC 2017 (e2f4d0f) x86_64 x86_64 x86_64 GNU/Linux
Congratulations! The latest Linux Kernel 4.12 has been successfully installed in openSUSE system.
Thanks for stopping by!
Help us to help you:
- Subscribe to our Email Newsletter : Sign Up Now
- Support OSTechNix : Donate Via PayPal
- Download free E-Books and Videos : OSTechNix on TradePub
- Connect with us: Reddit | Facebook | Twitter | LinkedIn | RSS feeds
Have a Good day!!
1 comment
If you don’t want release candidate kernels, I’d recommend using the stable repository
http://download.opensuse.org/repositories/Kernel:/stable/standard/
as oppose to HEAD