HERE'S HOW
On MacOS:
- Open System Preferences, then click on Software Update
- Check Automatically keep my Mac up to date
- Click Advanced...
4. Check ALL of the boxes in the Advanced panel
On Ubuntu Linux:
Use the following guide to set up automatic updates: https://help.ubuntu.com/community/AutomaticSecurityUpdates