Ubuntu

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 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts