On 26 Jan 2010, at 2:41 pm, Nakarin Phooripoom wrote:

> Zypper and yum seem to check and update the latest list of packages  
> every time it runs before installing any selected packages.
>
> Could we do something like this for Debian/Ubuntu?
>
> package_add_command => "/usr/bin/aptitude update && /usr/bin/ 
> aptitude --assume-yes install";

That's going to create a lot of unnecessary extra work for the machine  
to do.  What happens if your promises happen to generate a couple of  
dozen package installations needed?  You'll spank your web proxy (or  
worse, the upstream repository) rather unnecessarily hard.  Just have  
a shellcommand run aptitude update for you once a day.

Tim


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to