Forum: Cfengine Help Subject: Re: Ensuring apt-package installed and latest available Author: JarleB Link to topic: https://cfengine.com/forum/read.php?3,17651,17655#msg-17655
Yes I tried to change package policy to update. Then the package is updated. But it is updated regardless if the latest version is installed already. I think it would be relevant to have a method like package_policy => ensure_present_and_latest In order to do this one would have to always check: Package name installed ? = Yes - Which version is installed ? - Which version is available ? - Available newer_than installed ? = Yes - Upgrade package (answering yes to questions) = No - Do nothing = No - Install the one available from repo. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine