Automatic background updates
Aart Koelewijn
aart at mtack.xs4all.nl
Wed Dec 9 19:49:01 UTC 2009
On Wed, 09 Dec 2009 19:37:32 +0000, Liam Proven wrote:
> On Wed, Dec 9, 2009 at 7:27 PM, Steve <yorvik.ubunto at googlemail.com>
> wrote:
>> On Wed, 09 Dec 2009 18:41:25 -0000, Liam Proven <lproven at gmail.com>
>> wrote:
>>
>>> Is there an "official" way to do this, rather than just using cron to
>>> schedule a script that says something like...
>>>
>>> apt-get update
>>> apt-get upgrade -y
>>>
>>> ...?
>>>
>> There’s a setting for install security updates with out confirmation in
>> Update Manager > Preferences along with download in background, or am I
>> missing something.
>
> I'm hoping to not have to use the GUI at all.
>
> There seems to be some skeletal stuff in /etc/cron.daily/apt
>
> ... such as:
>
> # APT::Periodic::Unattended-Upgrade "0"; # - Run the
> "unattended-upgrade" security upgrade script # every n-days
> (0=disabled)
> # Requires the package "unattended-upgrades" and will write # a
> log in /var/log/unattended-upgrades
>
> But I don't know how this works or how to "activate" it...?
>
> This is on 9.04, BTW...
same in 9.10. Delete the comment sign (#) in front of the line and change
the 0 to 1 (or 2 or 3 or ..). Now it reads:
APT::Periodic::Unattended-Upgrade "1";
Now save, that is all.
Aart
More information about the ubuntu-users
mailing list