apt-get dist-upgrade -y cause a restart of the system?
I mean can it cause a restart without further confirmation?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I have never seen this. Even when updating kernels (which gives a message saying you should restart your machine before the new kernel is in effect).
apt-get is run with root priviledge, and it executes all sorts of "post install" scripts found in the .deb packages. If one of those scripts would do an 'init 6' or some other command that restarts the system, then yes:
apt-get will restart the system. This could even be the case without the
Basically, you are trusting the repositories where the .deb packages are, and as a consequence, you are also trusting the people that create those .deb packages to not do anything too malicious...