PackageManager

enum PackageManager : Enum<PackageManager> , ConvertibleToJava<PackageManager>

Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify ANY, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems. The default behavior is ANY.

Entries

Link copied to clipboard

The default behavior is ANY.

Link copied to clipboard

Apply this package config using the default system package manager.

Link copied to clipboard

Apply this package config only if Apt is available on the system.

Link copied to clipboard

Apply this package config only if Yum is available on the system.

Link copied to clipboard

Apply this package config only if Zypper is available on the system.

Link copied to clipboard

Apply this package config only if GooGet is available on the system.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val javaValue: PackageManager
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJava(): PackageManager
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.