How to set up automatic updates on Ubuntu
Step 1: Install unattended-upgrades
sudo apt update
sudo apt install unattended-upgrades -yStep 2: Enable it
sudo dpkg-reconfigure --priority=low unattended-upgradesStep 3: Check that the service is running
sudo systemctl status unattended-upgradesStep 4: Understand the config file
sudo nano /etc/apt/apt.conf.d/50unattended-upgradesStep 5: Optional - enable regular updates
Step 6: Optional - configure automatic reboot
Step 7: Configure update schedule
Step 8: Test the configuration
How to check what was installed
Optional: Email notifications
Common questions
What to watch out for
Conclusion
Last updated