Details
-
Type:
Task
-
Status: Rejected
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I'd like to audit if a package is installed.
I want to query the package manager to find out if package X version Y is installed.
I do NOT want to install it, I just want to check.
I would use this to gather information about the system (classify it).
Perhaps a packageexists() function?
examples:
check if JDK is installed:
{{{
classes:
"have_jdk"
expression => packageexists("jdk");
}}}
Check if JDK-1.7.0_60 is installed:
{{
{ classes: "have_jdk_7u60" expression => packageexists("jdk-1.7.0_60"); }}}
Attachments
Issue Links
- relates to
-
CFE-2246 packageupdatesmatching() and packagesmatching() should be able to leverege information from new package promise implementation
-
- Done
-
-
CFE-2346 As a policy writer I would like to be able to easily define a class if a package is installed or if there is a package update available for a specific package
-
- Open
-