0

So I have an alias that I use for performing updates that cleans up old kernels and stuff. Problem is that it doesn't notify me immediately if a reboot is required afterwards. What can I use to figure this out so that I can at least print a message to the screen?

alias update='sudo apt-get update;sudo apt-get dist-upgrade;sudo apt autoremove;'
Xaxon
  • 1

1 Answers1

2

The package manager creates a file, /var/run/reboot-required, if the installation requires a reboot. This file is deleted when the machine is restarted.

user5325
  • 448