apt
— Apt packages
The apt
check searches the local Apt package database, and asserts that packages are installed or missing.
Examples
Check that a package is installed:
[[apt]] package = 'ufw'
Check that a particular version is installed:
[[apt]] package = 'tmux' version = '2.8-3'
Check that a package is not installed:
[[apt]] package = 'httpd' state = 'missing'
List of parameters
parameter | structure | description |
---|---|---|
package | string | Name of the package. |
state | string | State of the package. This can be 'present' or 'missing' . |
version | string | If installed, the version that should be present. |