Semi-customized sane defaults
git clone https://github.com/dev01d/unattended-upgrades.git \
&& cd unattended-upgrades
50unattended-upgrades
provides theAutomatic-Reboot-Time
optiondownload-override.conf
provides the time potential updates are pulled downupgrade-override.conf
provides the time upgrades are performed
'One-liner' install:
sudo cp -v *-upgrades /etc/apt/apt.conf.d/ \
&& sudo mkdir -p /etc/systemd/system/apt-daily.timer.d/ \
&& sudo mkdir -p /etc/systemd/system/apt-daily-upgrade.timer.d/ \
&& sudo cp -v download-override.conf /etc/systemd/system/apt-daily.timer.d/override.conf \
&& sudo cp -v upgrade-override.conf /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf \
&& sudo systemctl restart apt-daily.timer \
&& sudo systemctl status apt-daily.timer \
&& sudo systemctl restart apt-daily-upgrade.timer \
&& sudo systemctl status apt-daily-upgrade.timer \
&& cd .. \
&& rm -rf unattended-upgrades
Test with:
unattended-upgrade -v --dry-run
Manually upgrade with:
unattended-upgrade -v