Manage System Packages
p2.package(
'title or pkg name',
options,
function (err, stdout, stderr) {
... to be called after exec of pkg command ...
}
)
Options:
| Operand | Type | Description |
|---|---|---|
| name | String | Package name to install (defaults to title) |
| ensure | String | present/installed, absent/purged, latest (default is present) |
| provider | String | Override backend provider e.g.: apt, yum, rpm, etc |
Provider Support: (incomplete module)
| Provider | Support Status | Unit Tests |
|---|---|---|
| apt | ✓ | ✓ |
| gem | ✘ | ✘ |
| npm | ✓ | ✘ |
| pip | ✓ (partial) | ✘ |
| portage | ✘ | ✘ |
| rpm | ✘ | ✘ |
| yum | ✓ | ✓ |
| zypp | ✓ | ✓ |
| winfeature | ✓ | ✓ |
| chocolatey | ✘ | ✘ |