Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (29 loc) · 1.19 KB

File metadata and controls

35 lines (29 loc) · 1.19 KB

Module: Package

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