Setup Cron To Auto Update Ubuntu

Posted by Weston Ganger on August 13, 2015

Setting up auto-updates is a pretty useful feature. Heres how to do it on ubuntu.

First edit your crontab file as sudo

sudo crontab -e

Next add the following entry in the editor that came up

# This will run at 1:00AM Nightly (min hour day day-of-month month day-of-week)
0 1 * * * /usr/bin/apt-get update && /usr/bin/apt-get -y upgrade >> /var/log/apt/myupdates.log

Related External Links:

Posted in Linux and Tagged with ubuntu cron auto-update linux 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts