Using YUM is the easiest way to update your Kernel to the latest version within its major release. For example, CentOS 7 can only be upgraded to the highest 7 version. To upgrade from CentOS 7 to AlmaLinux is a much more difficult and risky process.
Simply log into your server with root via SSH and run this code:
yum -y update kernel