For example, if I run sudo apt-get -y upgrade
if there is a package that requires a restart to upgrade, will the yes flag cause the system to reboot after the command finishes upgrading everything? Or, will it still require a manual reboot?
OS and Software:
-
Debian Buster 10 -> kernel version 4.19 on a Raspbian HW
-
apt
1.8.2 (armhf
)
Best Answer
No,
apt
on its own won’t reboot.You can check whether the file
/var/run/reboot-required
exists after runningapt
to see if a reboot is required. If you useunattended-upgrades
, you can configure that to reboot for you.