0

I've been able to configure automatic security updates with:

sudo dpkg-reconfigure unattended-upgrades

Running the above command brings up a configuration page. I only need to hit enter twice and the process is complete.

I'm looking for a way to automate the setup. For example with apt-get install I can use the -y flag.

Is there a way I can do this with unattended-upgrades so the process can be automated?

1 Answers1

0

That can be done by adding noninteractive to the command:

dpkg-reconfigure -f noninteractive unattended-upgrades

where the -f option in dpkg-reconfigure selects which debconf frontend to use (here set to noninteractive).

Hrafn
  • 231
  • 1
  • 13