> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Managing Linux Kernel Upgrades In Debian
- URL: https://itsfoss.com/kernel-upgrade-debian/
- Published: 2017-04-17T13:05:40.000Z
- Updated: 2017-09-06T16:17:07.000Z
- Author: Shirish
- Tags: Linux, #Import 2022-12-26 08:27

**Brief*: This article explains the steps to upgrade Linux kernel in Debian. It also provides you a few tips and some trivia around kernel management in Debian Linux.*

While [upgrading Linux Kernel in Ubuntu](https://itsfoss.com/upgrade-linux-kernel-ubuntu/) is slightly easier thanks to some graphical tool, I as a Debian user prefer to set things right in the terminal instead of in GUI. Before we see *how to upgrade Linux kernel in Debian*, let’s see a few things about it first.

![How to upgrade Linux kernel in Debian](https://itsfoss.com/content/images/wordpress/2017/04/Upgrade-linux-kernel-debian-800x450.jpg)

### The Debian LTS kernel Initiative

Now the [Linux kernel](https://itsfoss.com/facts-linux-kernel/) is an ever-moving target. Roughly every four months Linus releases a new kernel. Four months is a pretty short time to catch all the regressions and add new features etc. and hence . in 2011, a number of electronic makers came [together](https://www.linuxfoundation.org/news-media/announcements/2011/10/linux-foundation-announces-consumer-electronics-long-term-stable-ke?ref=itsfoss.com) and the [LTSI](http://ltsi.linuxfoundation.org/what-is-ltsi?ref=itsfoss.com) initiative was born.

The reason I shared the above is, at least in Debian, the Debian kernel maintainers always try to stick to the LTSI release in the stable release. The reasoning is simple, you get two years maintenance from upstream kernel which is similar to Redhat and Canonical’s Ubuntu. Debian also provides security [support](https://www.freexian.com/en/services/debian-lts.html?ref=itsfoss.com) for 5 years for the Debian kernel plus apps and they have been somewhat successful in raising the required amount although it never can be enough.

### Who really needs a new kernel?

There are only 2-3 types of people or people thrown into situations where a kernel upgrade will benefit.

- **Have the latest hardware** – While both chip manufacturers nowadays send code and driver contributions around 6 months before release, the userspace tools would need more time to be optimized and know the system a bit more intimately. For e.g. if I were to a [Kaby Lake](https://en.wikipedia.org/wiki/Kaby%5FLake?ref=itsfoss.com) processor or a [Zen processor](https://en.wikipedia.org/wiki/Zen%5F%28microarchitecture%29?ref=itsfoss.com) then having the latest kernels will at the very least make sure you have a CLI (command-line interface) if not the GUI.
- **Regression** – At times, mistakes do happen which are called regressions. These regressions over-time are and can be expensive to an organization. This has been [discussed](https://lwn.net/Articles/608954/?ref=itsfoss.com) and [known](https://www.phoronix.com/scan.php?page=news%5Fitem&px=Linux-4.7-SPEC-Java-Regression&ref=itsfoss.com) over the [years](https://lkml.org/lkml/2016/12/4/67?ref=itsfoss.com) and the only way to do that is have more and more users testing the kernels and having a variety of kernels in real-world conditions. In reality, most people do not even know that the kernel has a performance regression unless there is a specific use-case and there are other kernel versions doing the same/similar work with the same specs.
- **Formatting a system to start things from scratch** – Whenever you format your system it makes most sense to use the latest available kernel

### How to know Linux Kernel version in Debian Linux?

Before we go anywhere or do anything, we need to know what is the version of the existing kernel. You can use the command below:

```
uname -r
```

The output of the above command for my system is 4.9.0-2-amd64 meaning that I use Linux Kernel 4.9.0-2.

### Using backport Linux kernels in Debian

Now if I were on Debian Jessie, what is called as the “stable” in Debian for 64-bit systems (as that’s in vogue now) – I would be using [3.16.0-4](https://packages.debian.org/jessie/linux-image-3.16.0-4-amd64?ref=itsfoss.com). Now let’s say for one or the reason from the above, you want the backported kernel. Now the only thing you need to do is to add backports to the list of /etc/apt/sources.list . Here is an example of an /etc/apt/sources.list using stable –

https://gist.github.com/shirishag75/d2fd9a76460d959de8edd88206df9b0a

Do that and run `sudo aptitude update `

### Look for available Linux Kernel

Once the index is updated, you can do –

`aptitude search linux-image`

It should give you a list containing your existing kernel as well as any new kernel images its finds. Mine is a bit differently [tailored /etc/apt/sources.list](https://gist.github.com/shirishag75/b27ea2231b529a98e524a1c68af0063c?ref=itsfoss.com) hence gives slightly different results.

As you can see, the linux-image commanded also showed the 32-bit kernels because I have added architecture-i386 as a foreign architecture.

https://gist.github.com/shirishag75/f8d58168d879482174d1a9f2bd0d5ef0

### Installing a new Linux Kernel in Debian

Now usually if people want to update, they simply update linux-image-amd64 and it will pull in the required dependencies.

In my case, however, as there are no kernel updates in the short-term I will show how to update/upgrade to the next kernel, in this case 4.10.0-trunk. So this is what I do:

`sudo aptitude install linux-image-4.10.0-trunk-amd64-unsigned linux-headers-4.10.0-trunk-amd64`

Just follow the instructions. If something goes wrong, you’ll still be on the old kernel. However, I would insist that you [file a bug report to Debian developers](https://itsfoss.com/bug-report-debian/).

I hope you know **how to upgrade Linux kernel in Debian** and you also learned a few things about Linux kernel. As [I love using Debian](https://itsfoss.com/reasons-why-i-love-debian/), I’ll write more articles around it in coming weeks.