Comment on page
Install
Action: package.install
Key | Type | Optional | Description |
---|---|---|---|
action | string | no | package.install |
name | string | no | name of the target package |
list | list | yes | list of multiple packages |
provider | string | yes | OS specific package provider |
repository | string | yes | specific repository for a provider & package |
Basic
List
Providers
Repositories
Variants (Alpha)
Jinja (Discouraged)
- action: package.install
name: curl
- action: package.install
list:
- curl
- wget
- action: package.install
name: curl
provider: homebrew
# Providers are guessed when missing, valid options are:
# aptitude, bsdpkg, homebrew, pkgin, winget, and yay/pacman
# When specifying a provider, you can attempt to provide
# repository information: like ppa's or taps
- action: package.install
name: blox
provider: homebrew
repository: cueblox/tap
# Very early preview feature
- action: package.install
name: kubectl
variants:
macOS:
name: kubernetes-cli
# We want to provide better declarative options than this, but it works
# if needed.
<div data-gb-custom-block data-tag="if" data-0='root' data-1='root' data-2='root'>
- action: package.install
name: kubectl
</div>
Last modified 1yr ago