packageupdatesmatching

Table of Contents

Prototype: packageupdatesmatching(package_regex, version_regex, arch_regex, method_regex)

Return type: data

Description: Return a data container with the list of available packages matching the parameters.

This function searches for the anchored regular expressions in the list of currently available packages.

The return is a data container with a list of package descriptions, looking like this:

Arguments:

  • package_regex: string, in the range: .*
  • version_regex: string, in the range: .*
  • arch_regex: string, in the range: .*
  • method_regex: string, in the range: .*

Example:

      "all_packages" data => packageupdatesmatching(".*", ".*", ".*", ".*");

History: Introduced in CFEngine 3.6

See also: packagesmatching().