Setting up “auto-update” on your system thru command line
Below you can find a ‘howto’ on setting up an automated update system for your ubuntu system. In essence we’ll be setting up the whole aptitude mechanism thru cron.
WARNING : This may cause unexpected results due to unknown updates.
Open up the crontab as root
kvaes@ubuntu:~$ sudo crontab -e
Add the following line to your crontab
0 0 * * * aptitude -y update && aptitude -y upgrade && aptitude -y dist-upgrade && aptitude -y autoclean
Sidenote: If you prefer the gui, check the following article. It won’t do exactly the same, but it might give you a better feeling…






Recent Comments