Articles on: Linux server

Manage your kernel

Whether it is to patch various recently discovered security holes, or to take advantage of software improvements, updating the kernel is a very common part of a server's life.

Check your kernel version



You can easily check the current version of your kernel, using the command "uname -a".

pulseheberg@HelpDesk:~# uname -a
Linux HelpDesk 4.15.17-1 #1 SMP 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64 GNU/Linux


In this example, the kernel version is 4.15.17-1.

Update your kernel



VPS LXC or OpenVZ :



The kernel update cannot be performed on this type of VPS (this is a limitation of the technologies). The kernels of these VPS are managed directly by the hosts hosting the VPS, and therefore, by our teams. They are constantly kept up to date, via Kernel care technology. As soon as a new kernel/patch is available, a patch is deployed within 4 hours on the host hosting your VPS. The latter is then immediately effective, without the need to reboot. 

VPS KVM or Dedicated Server



KVM VPS and dedicated servers have independent kernel management, like any Linux server. The update of the latter is done with a simple command :

On Debian/Ubuntu


pulseheberg@HelpDesk:~# sudo apt-get update && apt-get dist-upgrade


On Centos/Redhat


[pulseheberg@HelpDesk ~]# sudo yum update


Une fois la mise à jour terminée, le nouveau kernel n'est pas directement utilisé. Pour cela il est nécessaire d'effectuer un redémarrage du serveur concerné : 

pulseheberg@HelpDesk:~$ sudo reboot

Updated on: 17/10/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!