Debian kernel update

Step to Step guide how to make Debian kernel update

The current version of the kernel can be found with the following command:

# uname -a

The latest version of the kernel is available in the backports repository, you should add it to the list of repositories on the system

# echo "deb http://ftp.debian.org/debian/ stretch-backports main non-free contrib" >> /etc/apt/sources.list
# apt-get update

Searching for available kernel versions for installation

# apt search linux-headers
v linux-headers -
v linux-headers:i386 -
v linux-headers-3.0 -
v linux-headers-3.0:i386 -
p linux-headers-4.15.0-1004-oem - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1006-gcp - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1006-oem - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1007-aws - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1007-oracle - Oracle Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1008-gcp - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1008-kvm - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1008-oem - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
p linux-headers-4.15.0-1008-oracle - Oracle Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
...

Select the required version from the list of available packages and install it

# apt install linux-headers-[version number]-bpo.1 linux-image-[version number]-bpo.1

The installation process will update Grub and will require a server restart to apply the changes.