Forum: CFEngine Help
Subject: package list commands?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,24642,24642#msg-24642

I'm defining a package_method which exists solely to determine if packages are 
installed or not.  It will operate on rpm-based systems, so I'm basically just 
listing all of the packages and seting a verify command of /bin/true with a .* 
regex.  This should allow me to use the verify method in a package promise to 
set a class if the desired package is installed.

I don't want to run rpm every time cf-agent executes, though; I want to cache 
the package list and operate from that when possible.  It's unclear to me, 
then, if I need to specify a package_list_command and/or a 
package_update_list_command in combination with the 
package_list_update_ifelapsed parameter.  The documentation could perhaps use 
some enhancement here - but until that happens, anyone happen to know which 
combination I should use?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to