Choco Operations

Manage choco (Chocolatey) packages (https://chocolatey.org).

choco.install

Install choco (Chocolatey).

choco.install()

choco.packages

Add/remove/update choco packages.

choco.packages(packages=None, present=True, latest=False)
  • packages: list of packages to ensure
  • present: whether the packages should be installed
  • latest: whether to upgrade packages without a specified version
Versions:
Package versions can be pinned like gem: <pkg>:<version>.

Example:

# Note: Assumes that 'choco' is installed and
#       user has Administrator permission.
choco.packages(
    name='Install Notepad++',
    packages=['notepadplusplus'],
)