How to Install a New Linux Kernel on openSUSE Leap

To install a newer upstream kernel on openSUSE Leap, follow the documented Kernel:HEAD method: preserve a known-good kernel, add the repository, preview Zypper's proposed changes, then install.

Kernel:HEAD is an experimental development source, not a routine stability or security update. The openSUSE Reference specifically warns that this kernel can break a system and says ordinary users should normally use Leap's supported kernel updates, which include fixes backported by SUSE. The exact Kernel:HEAD instructions below are documented for Leap 15.6; verify that the repository supports your installed Leap release before continuing.

1. Check your Leap release and current kernel

Open a terminal and record the release and kernel currently in use:

cat /etc/os-release
uname -r
sudo zypper se -s 'kernel*'

The first command identifies the distribution, uname -r prints the running kernel, and the Zypper search lists available packages. Confirm that the repository supports your Leap release and architecture; the exact Kernel:HEAD recipe here is documented for Leap 15.6.

Mock openSUSE terminal showing uname -r and Zypper's kernel package search, with placeholders for machine-specific output
Illustrative terminal layout; the release and package results depend on your system.

2. Preserve a bootable kernel as a fallback

Leap normally enables parallel kernel installation. Verify that multiversion support remains active and set retention before adding a development kernel:

sudoedit /etc/zypp/zypp.conf

Make sure the following line is present and not commented out:

multiversion = provides:multiversion(kernel)

The multiversion setting enables parallel kernel installation. The separate multiversion.kernels setting controls which installed versions Zypper keeps. If you want to retain the earliest installed kernel as well as recent and running kernels, set the policy to:

multiversion.kernels = latest,latest-1,running,oldest

If a retention policy already exists, edit it instead of adding a duplicate. Keep running; oldest retains the lowest-version kernel as a fallback. Save and exit.

Text editor mockup showing the kernel multiversion and retention settings in zypp.conf
Keep the running kernel and add oldest if you want to retain the earliest installed kernel as a fallback.

3. Add the Kernel:HEAD repository

Kernel:HEAD tracks development work and can move quickly. Add it under a clear alias, then refresh repository metadata:

sudo zypper ar https://download.opensuse.org/repositories/Kernel:/HEAD/standard/ kernel-repo
sudo zypper ref

If the alias already exists, verify its URL with zypper lr -d kernel-repo; do not add a duplicate. The openSUSE reference documents this repository for its Leap 15.6 kernel procedure.

Terminal mockup with Zypper commands to add the Kernel:HEAD repository and refresh package metadata
The commands add the repository and refresh its package list; no installation occurs yet.

4. Preview and install the kernel

First ask Zypper to simulate the distribution upgrade from the named repository:

sudo zypper dup --dry-run --allow-vendor-change --from kernel-repo

Inspect the transaction. Continue only if it contains the requested kernel and necessary dependencies. If it proposes broad removals, unrelated upgrades, or unexplained vendor changes, answer no. The documented --allow-vendor-change option accounts for a kernel package from another vendor; --from selects the repository. Review every proposed change.

When the dry run shows only changes you intend to make, run the documented command without --dry-run and review the confirmation prompt:

sudo zypper dup --allow-vendor-change --from kernel-repo

Do not interrupt the transaction. If you use out-of-tree drivers or kernel module packages (KMPs), check for builds matching the new kernel; an old kernel can mask missing modules during dependency checks.

5. Reboot, verify, and keep the fallback

After Zypper finishes, reboot and check the active kernel:

sudo reboot
uname -r

The version returned by uname -r should match the kernel you selected. If it does not, use the GRUB menu to choose the new entry, then review the boot-loader default. Keep the earlier Leap kernel installed until the new kernel boots reliably and your essential hardware, storage, graphics, networking, and external modules work.

Terminal mockup showing a Zypper upgrade from Kernel:HEAD followed by reboot and uname verification commands
Review Zypper's proposed changes before confirming the upgrade, then check the active kernel after reboot.

Risks and recovery tips

  • Use Kernel:HEAD only when you need to test a development kernel. It may introduce regressions; for normal use, install Leap's official updates instead of chasing the latest upstream version number.
  • Check module compatibility. Proprietary graphics, virtualization, Wi-Fi, and other external modules may need a matching KMP or rebuild. With Secure Boot enabled, unsigned modules may be refused by the kernel; consult openSUSE's current driver guidance before upgrading.
  • Leave room in /boot. Multiple kernels, initrds, and boot entries use disk space. Check df -h /boot before installing, especially if the boot partition is small.
  • If the new kernel fails to boot, restart and select the previous Leap kernel from GRUB. Do not delete that fallback while diagnosing the problem.

For the version-specific procedure and kernel-retention options, read the openSUSE Leap Reference on installing multiple kernel versions. Review the official Kernel:HEAD repository and openSUSE driver guidance for compatibility information relevant to your system.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.