Skip to main content

How a New Linux Kernel Version Is Made

The Linux kernel gets a new version about every nine to ten weeks. Each cycle opens with a two-week "merge window" for new features, and weekly test releases follow until the code is stable. Once a version is out, separate teams keep fixing bugs in stable and long-term kernels for months or even years.

What it means

Every Linux system is built around the kernel. This is the part that talks to the hardware: the processor, the memory, the disk, the network card and the graphics card. Apps never reach the hardware themselves. They ask the kernel to do it for them.

Thousands of people work on the kernel at once. To keep this under control, the work follows a fixed rhythm, a bit like a train timetable. New features can only board during a short window. Then the doors close, and the crew only fixes problems until the train is ready to leave.

The result for you is a steady flow of new hardware support and improvements. You do not need to follow the rhythm yourself. Your Linux distribution, such as Ubuntu or Fedora, chooses a kernel version, tests it and delivers it with your normal updates.

Back to top

How to use it

You can check which kernel version your system runs. Open a terminal and type:

uname -r

This prints the version of the running kernel, for example 6.8.0-45-generic. The first numbers are the kernel version itself. Your distribution adds the rest to mark its own builds.

Kernel versions come in a few kinds:

  • Mainline: the newest version, released by Linus Torvalds. This is where new features show up first.
  • Stable: a mainline version that keeps getting bug fixes after its release. Most stable versions receive fixes for a few months.
  • Longterm (LTS): selected versions with fixes for several years. Many distributions and devices rely on them.

kernel.org lists the current versions. Most users should use the kernel that their distribution provides. Distributions add their own fixes and test the kernel together with the rest of the system. If you need support for very new hardware, choose a distribution with a newer kernel, such as Fedora. That is usually safer than building a kernel yourself.

Back to top

How it works

A cycle begins on the day a new mainline version is released. From that moment, the merge window stays open for about two weeks. Subsystem maintainers send their prepared changes to Linus Torvalds, and he merges them. This is the only time new features get in.

The real work on those features happens months earlier. It takes place in the maintainers' own trees and in the linux-next tree, where changes are tested together.

When the merge window closes, Torvalds tags the first release candidate, -rc1. After that point, only fixes are accepted. A new release candidate appears about once a week: -rc2, -rc3 and so on. Most cycles stop after -rc7 or -rc8, once the number of regressions is low enough. The final version is then released, and the next merge window opens right away.

After the release, the stable team takes over. Its rules require that a fix is already in the mainline tree before it can enter a stable kernel. That way, a bug fixed in one version is not forgotten in the next. Stable releases carry a third number, for example 6.12.3.

Each year, a few versions become longterm kernels. Their maintainers keep adding fixes for several years. This explains how a device or a server distribution can stay on one kernel version for a long time and still receive security fixes.

The version numbers themselves carry no special meaning. Once the second number gets high, Torvalds starts a new first number. A move from 6.x to 7.0 is no bigger than any other release.

Back to top

Sources

Back to top
The welovelinux penguin

The byline of welovelinux news articles. AI helps us write the first draft, and a human editor, Peter Martin, checks every article against its sources before it is published.

Frequently asked questions

A new version comes out about every nine to ten weeks. Each cycle starts with a merge window of about two weeks for new features. After that, a new release candidate comes out about every week until the code is stable, usually after -rc7 or -rc8.

The merge window is a period of about two weeks after each new release. During this time, subsystem maintainers send their prepared changes to Linus Torvalds, who merges them. New features are only accepted in this window. After it closes, only fixes are accepted.

Open a terminal and type uname -r. The output looks like 6.8.0-45-generic. The first numbers are the kernel version. The rest is added by your distribution for its own builds.

A stable kernel is a mainline version that gets bug fixes after its release, usually for a few months. A longterm (LTS) kernel is a selected version that gets fixes for several years. Many distributions and devices use longterm kernels, so they can stay on one version and still get security fixes.

No. Version numbers have no special meaning. When the second number gets high, Linus Torvalds starts a new first number. A change from 6.x to 7.0 is not a bigger release than any other.