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… 😉

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.