Skip to main content

package

Description

Package on the platform or OS

Init

package(name string)

Fields

IDTYPEDESCRIPTION
namestringName of the package
versionstringCurrent version of the package
archstringArchitecture of this package
epochstringEpoch of this package
formatstringFormat of this package (e.g. rpm, deb)
statusstringStatus of this package (e.g. if it is needed)
descriptionstringPackage description
originstringPackage Origin (optional)
availablestringAvailable version
installedboolIndicates if this package is installed
outdatedboolIndicates if this package is outdated

Examples

Check if a package is installed

package("git").installed;