GNU/Linux Desktop Survival Guide
by Graham Williams
20200726 After an upgrade there may be times when a reboot is required (such as when the kernel is upgraded). We can check if a reboot is required by checking for the file /var/run/reboot-required which acts as a reboot flag. If it exists then the computer requires a reboot and the contents of the file /var/run/reboot-required.pkgs will ist the packages that necessitate the reboot.
Wajig can check the existence of the reboot flag with the reboot command:
$ wajig reboot *** System restart required *** The following packages necessitate the reboot: linux-image-5.4.0-42-generic linux-base evolution-data-server gnome-shell To reboot use "sudo reboot".
To reboot a computer usually requires admin privileges, hence the use of sudo with the reboot command. Wajig itself will not reboot the computer.