Skip to content

Instantly share code, notes, and snippets.

@adamz01h
Created April 27, 2023 19:09
Show Gist options
  • Select an option

  • Save adamz01h/75a9d4ecf75840b7742ff94e70aea05e to your computer and use it in GitHub Desktop.

Select an option

Save adamz01h/75a9d4ecf75840b7742ff94e70aea05e to your computer and use it in GitHub Desktop.
Unattended upgrades
sudo -s
apt update
apt install unattended-upgrades
nano /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Unattended-Upgrade "3";
APT::Periodic::AutocleanInterval "7";
nano /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Mail "[email protected]";
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "1:00"; // Optional
unattended-upgrade -v -d --dry-run
unattended-upgrade -v -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment