Package on the platform or OS
package MQL resource for querying Operating System infrastructure with cnquery and cnspec.
Operating System
Package on the platform or OS
Use MQL in cnspec shell or policy:
packageMin version: 5.15.0Defaults:
name versionRelationships
1 resources · 0 relationships·Click to select, expand fields to see properties.
Fields (15)
| Field | Type | Description |
|---|---|---|
archrequired | string | Architecture of this package |
availablerequired | string | Available version |
cpesrequired | []cpe | Common Platform Enumeration (CPE) for the package |
descriptionrequired | string | Package description |
epochrequired | string | Epoch of this package |
files | []pkgFileInfo | Package files |
formatrequired | string | Format of this package (e.g., rpm, deb) |
installedrequired | int | Whether the package is installed |
namerequired | string | Name of the package |
origin | string | Package origin, may include version if available (optional) |
outdated | int | Whether the package is outdated |
purlrequired | string | Package URL |
status | string | Status of this package (e.g., if it is needed) |
vendorrequired | string | Package vendor |
versionrequired | string | Current version of the package |