Automatic update

Brian McKee brian.mckee at gmail.com
Sat Sep 27 17:19:44 UTC 2008


On Fri, Sep 26, 2008 at 5:05 PM, David McNally <david3333333 at gmail.com> wrote:
> Hi everyone.
>
> Here's the problem: I want my Hardy machine to automatically download and
> install both the security updates and the recommended updates. However, I
> can only figure out how to set it to do one of two things:
>
> Automatically download but not install all both the security and recommended
> updates, OR...
>
> Automatically download and install only the security updates.
>
> I want it to download and install both the security and recommended updates.

If that's what you really want - you could simply put
aptitude update && aptitude  -y safe-upgrade in a cron job

I would suggest instead you download automatically and upgrade when
you feel like it, but it's your machine.

There is a page here that basically says the same thing
<http://www.builderau.com.au/program/linux/soa/Automatically-update-your-Ubuntu-system-with-cron-apt/0,339028299,339279542,00.htm>

but I would really recommend you skip his comments about redirecting
to /dev/null
A bit of extra stuff in your logs is much preferred than loosing vital
info if something goes wrong.

Hope that helps

Brian




More information about the ubuntu-users mailing list