Created
April 27, 2023 19:09
-
-
Save adamz01h/75a9d4ecf75840b7742ff94e70aea05e to your computer and use it in GitHub Desktop.
Unattended upgrades
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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