Need to upgrade your Debian kernel to the latest version without upgrading your entire operating system? This article shows you how to safely jump to the newest Linux kernel using official Debian Backports or the high-performance Liquorix Kernel.
Note: As I’m writing this content, the upstream Linux kernel is in the 6.x/7.x development lifecycle. There is no official standalone “Debian Kernel 7” release; instead, Debian utilizes the upstream stable Linux kernel branches.

How to get the latest kernel on Debian linux?
To quickly update to the newest kernel available for your Debian release, run the following commands in your terminal:
To add backport in the source list:
sudo echo "deb http://debian.org $(lsb_release -cs)-backports main" | sudo tee -a /etc/apt/sources.list
Refresh the index once:
sudo apt update
Install and update to latest available kernel:
sudo apt install -t $(lsb_release -cs)-backports linux-image-amd64 linux-headers-amd64
Restart to apply the changes:
sudo reboot
But, I’ll recommend to dig down deeper and understand how it happens in detail.
So follow the recommended method only. Other ones are just for fun.
Method 1: Upgrade using the official Debian Backports (recommended).
Debian Backports provide packages from the testing and unstable branches adjusted to run on the stable release. This is the safest way to get a modern kernel.
Step 1: Open the sources list.
Open your software repository configuration file using a text editor like Nano:
sudo nano /etc/apt/sources.list
Step 2: Add the backports repository.
Scroll to the bottom of the file and append the following line.
(Note: Replace bookworm with your current Debian codename, such as trixie or forky, if you are on a different version).
deb http://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
Save the file by pressing Ctrl+O, hit Enter, and exit using Ctrl+X.
Step 3: Update package indexes.
Refresh your local package database to fetch the newly added backports repository metadata:
sudo apt update
Step 4: Install the newest kernel.
Force APT to pull the kernel image and headers specifically from the backports track:
sudo apt install -t trixie-backports linux-image-amd64 linux-headers-amd64
Step 5: Reboot and verify.
Restart your system to boot into the newly installed kernel:
sudo reboot
Once your system restarts, open a terminal and run the following command to verify your active kernel version:
uname -r
Method 2: Install the Liquorix custom kernel (best for desktops & gaming)
If you need a bleeding-edge kernel optimized for low-latency desktop performance, multimedia production, or gaming, the Liquorix kernel is an excellent third-party alternative built specifically for Debian.
Step 1: Install system prerequisites.
Ensure your system has curl and release-detection utilities installed:
sudo apt install curl lsb-release apparmor
Step 2: Run the automated installation script.
Liquorix provides an official script that automatically adds their repository, imports GPG signing keys, and installs the latest optimized kernel:
curl -s 'https://liquorix.net' | sudo bash
Step 3: Reboot your system.
Once the script finishes downloading and setting up the packages, restart your computer:
sudo reboot
Step 4: Confirm installation.
Verify that the system is running the new custom kernel:
uname -r
The output should contain “-lqrx” signifying the Liquorix build.
Troubleshooting & Frequently Asked Questions (FAQ)
How do I revert to the old Debian kernel if something breaks?
If your system fails to boot or hardware misbehaves, reboot your computer and repeatedly press Esc or Shift to bring up the GRUB Boot Menu.
Select “Advanced options for Debian GNU/Linux” and choose your previous kernel version from the list. In that list you’ll see current and few old ones. Once booted, you can safely purge the broken kernel using sudo apt remove <kernel-version>.
Using command dpkg --list | grep linux-image you can know kernel-version.
You must run sudo update-grub in terminal once to update the grub entry also.
Is it safe to update the kernel on a production Debian server?
Using Debian Backports is generally safe for production environments because the packages are built to coexist with stable libraries.
However, installing third-party kernels like Liquorix on production servers is discouraged, as they prioritize performance over strict enterprise stability.
Do I need to manually update the kernel after this?
No. Once you add the Backports or Liquorix repository, subsequent security updates and minor version upgrades for that kernel track will automatically be managed when you run standard system updates via sudo apt update && sudo apt upgrade.
Leave a Reply