Forum: CFEngine Help Subject: Re: if-then-else Author: tjavo87 Link to topic: https://cfengine.com/forum/read.php?3,25175,25179#msg-25179
mark Wrote: ------------------------------------------------------- > Hi, > > In CFEngine you don't have to check this kind f > thing in advance. The checking is built into the > semantics of the language. All you do is to assert > that you want the package updated to the latest, > and CFEngine will figure out the rest. You can > then check the status of the promise -- was it > kept (meaning ok) or repaired meaning it is now ok > after having been updated...etc. > > So all of the communication with yum is build in. > > packages: > > "mypackage" > > comment => "Must have the latest > version of this package", > package_policy => "update", > package_method => "yum"; # or addupdate Hi Mark, Thanx. What is the best method to use for updating all the packages. I can run rpm -qa and place that in a variable? Regards _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine