How can I list highest version of a kernel in perl – CentOS
In many docker container, le /boot is empty. Though, the vmlinuz is available in /var/lib/modules/<kver>/vmlinuz In shell, I can do: for kver in $(ls /lib/modules|sort -Vr) do test -f /lib/modules/$kver/vmlinuz && echo $kver && break done How can I do…