Run sudo nano /etc/apt/apt.conf.d/52unattended-upgrades-local
and add contents
Unattended-Upgrade::Origins-Pattern {
"origin=*";
};
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "03:00";
Run sudo dpkg-reconfigure unattended-upgrades
to start it.
The 50unattended-upgrades that's already there is not supposed to be edited accoring to the debian unattended upgrades wiki.
This solution from Reddit
On Fedora, I've made the docs less confusing IMO: https://docs.fedoraproject.org/en-US/quick-docs/autoupdates/
It's now just:
sudo dnf install dnf-automatic
sudo nano /etc/dnf/automatic.conf
and then add contentssystemctl enable --now dnf-automatic.timer
This solution from same thread Reddit and user - thank you!