How to find out the previous kernel version on CentOS after a reboot

To find out the previous kernel version on CentOS after a reboot, you can use the rpm command to query the package database. Here are the steps:

Open a terminal or SSH session to your CentOS server.

Type the following command to list all installed kernels:

rpm -qa | grep "kernel-[0-9]"

This will output a list of all installed kernel packages.… Read the rest