- Check current linux kernel version
uname -msr
- Install new version of kernel
sudo apt-get install linux-image-5.4.0-100-generic -y
- Check installed kernel versions
grep menuentry /boot/grub/grub.cfg
sudo dpkg -l | grep ii | grep linux-image-[0-9].*-generic
- Purge old kernel version
sudo apt-get purge linux-image-5.4.0-97-generic
- Reboot the machine
su reboot
- Check the kernel version
uname -msr