Skip to content

choco

choco

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

install()

Install choco (Chocolatey).

packages(packages=None, present=True, latest=False)

Add/remove/update choco packages.

  • 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:

.. code:: python

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