i have a vps with Contabo and their support is literally non existant
my vps is running an almalinix v8.8.0 - it doesnt boot with the latest kernel 4.18.0-477.27.2.el8_8.x86_64 and i have to select an older one 4.18.0-477.21.1.e18_8 for it to boot
I deleted the faulty kernel with yum remove kernel-4.18.0-477.27.2.el8_8.x86_64 but it continues to show in my console when the vps boots
update-initramfs -u -k 4.18.0-477.27.2.el8_8.x86_64 : command not found
update-grub : command not found
how to proceed ?! i dont care about the last kernel
The kernel is in multiple packages. See rpm -qa kernel\*
In other words, there may be kernel-core, kernel-modules, etc still in for 477.27.2.el8_8.
If so, the boot entry is probably from them, not from/by the kernel package.
Note though that some packages, like kernel-tools* and kernel-headers are not install_only and thus should not be removed.
I think that the first tool is now dracut and the second grub2-mkconfig, but you can
look whether you have /boot/loader/entries/*.conf
If there is a file for 477.27.2, then you can remove it for starters.