How to automatically apt-get?

Derek Broughton news at pointerstop.ca
Wed Sep 26 00:49:54 UTC 2007


Josef Wolf wrote:

> On Tue, Sep 25, 2007 at 10:12:52AM -0300, Derek Broughton wrote:
> 
>> Apt is _designed_ to do automatic updates.  You should have
>> a /etc/cron.daily/apt, which does the "apt-get update".  Then you need to
>> have the following lines in a file somewhere in /etc/apt/apt.conf.d/:
>> 
>> APT::Periodic::Update-Package-Lists "1";
>> APT::Periodic::Download-Upgradeable-Packages "1";
>> 
>> The first says to get the updates, the second says to download them.  At
>> this point they're still not installed, just downloaded.
> 
> Thanks, Derek!  It looks like APT::Periodic::Unattended-Upgrade is
> what I am searching for.

Great - of course, that's the part I know nothing about :-)
-- 
derek





More information about the ubuntu-users mailing list