Setup Automatic Updates on Debian
#Debian #Linux #Updates #UnattendedUpgrades
Full steps can be found at https://i12bretro.github.io/tutorials/0535.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install software updates
sudo apt upgrade -y
# install unattended-upgrades
sudo apt install unattended-upgrades -y
# edit unattended-upgrades config
sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
03. Update the unattended-upgrades conf as needed
Uncomment the ::Mail line and edit the email address to receive email notifications
Unattended-Upgrade::Mail "i12bretro@i12bretro.local";
Uncomment and set the value to true to automatically remove unused dependencies
Unattended-Upgrade::Remove-Unused-Dependencies "true";
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands
# at the prompt, select Yes to enable automatic updates
sudo dpkg-reconfigure --priority=low unattended-upgrades
# enable and start the unattended upgrades service
sudo systemctl enable unattended-upgrades --now
06. That's it, updates will now be installed automatically. Logs can be found in /var/log/unattended-upgrades
07. To run updates on demand, simply run the following command
sudo unattended-upgrade -d
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro
Other Videos By i12bretro
Other Statistics
Prompt Statistics For i12bretro
Currently, i12bretro has 558 views for Prompt across 1 video. His channel published less than an hour of Prompt content, making up less than 0.06% of the total overall content on i12bretro's YouTube channel.