Show the running kernel and installed kernels
which kernel version is running | list installed kernels | is the new kernel running yet | uname | kernel | dpkguname -r && dpkg --list 'linux-image-[0-9]*' | awk '/^ii/ {print $2, $3}'The first line is the currently running kernel, followed by all installed kernel packages with their versions. If a newer package is installed than the running kernel, the server has not been rebooted since the update. Many old kernels suggest that apt autoremove has not run in a long time.
Note: On servers with a provider kernel (such as some VPS with OpenVZ), the running kernel does not appear in the package list.
Also searched as
- which kernel version is running
- list installed kernels
- is the new kernel running yet