Let's say I have just done an aptitude safe-upgrade
on a Debian system, but I was not paying attention so I did not notice if the kernel was updated or not.
How can I now determine if there was a kernel upgrade and a reboot is in order?
Let's say I have just done an aptitude safe-upgrade
on a Debian system, but I was not paying attention so I did not notice if the kernel was updated or not.
How can I now determine if there was a kernel upgrade and a reboot is in order?
Compare the running kernel (
uname -a
) to the files in/boot
and see if there is a newer version.Aptitude logs to
/var/log/aptitude
and apt-get logs to/var/log/dpkg.log
. If you've installed a new kernel the installation of the package should be recorded in one or both of those log files.Check
menuentry
entries in your/boot/grub/grub.conf
check the time stamp of the kernel/vmlinuz* , grub.conf ... and see if it was recently updated.
Look at your
/var/log/audit/audit.log
and search for any file modifications in /boot...I can go on and on ... -:)
This is a good clue:
If the top version is higher than the bottom version then you likely have an updated kernel (and will have to reboot to activate it).
This script uses apt to get a bit more definitive:
Check the LATEST INSTALLED KERNEL. If it is a higher number than CURRENTLY OPERATING KERNEL, then new kernel was installed, but you'll need to reboot to activate it.
I wrote it to exclude cloud and rt kernel versions. You might need to modify some of the grep statements if you use those.