Hello,
To achieve this I have provided my modified version of package_method body:
body package_method aptget
{
package_changes => "bulk";
package_list_command => "/usr/bin/dpkg -l";
package_list_name_regex => "ii\s+([^\s]+).*";
package_list_version_regex => "ii\s+[^\s]+\s+([^\s]+).*";
package_ins
Forum: CFEngine Help
Subject: Re: How to skip installing package if already installed
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,26170,26173#msg-26173
cfengine won't edit the file multiple times if the resulting file is the same.
Check the timestamp on the file to confir
Forum: CFEngine Help
Subject: Re: How to skip installing package if already installed
Author: btomasini
Link to topic: https://cfengine.com/forum/read.php?3,26170,26172#msg-26172
Thanks, This should solve the problem of the package being installed again.
Now what about not triggering the apt-ge
Forum: CFEngine Help
Subject: Re: How to skip installing package if already installed
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,26170,26171#msg-26171
Change to package_method => apt and add package_compare => ">=".
___
Help-cf