9

After updating a number of packages, I get the 'Server reboot required' message upon login. What specific package or package(s) triggered this message?

Note: Two other questions address why a reboot is required for some updates e.g. this and this, but my question is specifically asking how to identify the package(s) that triggered this. It's also worth linking to this related question that asks how to identify the packages that would require a restart before performing the update

Hamy
  • 500

1 Answers1

12

One way to identify this info is to look in /var/run at these files

$ cat /var/run/reboot-required
*** System restart required ***
$ cat /var/run/reboot-required.pkgs
linux-base
linux-image-4.4.0-93-generic

These files will not exist unless a reboot is required, so checking if they exist is also a nice trick to know if a reboot is required:

[ -e /var/run/reboot-required* ] && echo "Reboot is required!" || echo "Reboot is not required."
pa4080
  • 29,831
Hamy
  • 500