Chocolatey

ID

choco

Home page

https://chocolatey.org

Upstream stars

⭐ 11,503

Last commit

2026-08-19

Version requirement

>= 2

Platforms

🪟 Windows

Operations

installed · outdated · search · install · upgrade · upgrade_all · remove

purl types

pkg:choco · pkg:chocolatey

CLI name

choco

Every call

choco <command> --no-progress --no-color

Issues and PRs

📦 manager: choco

Source

meta_package_manager/managers/choco.toml

Chocolatey is the community package manager for Windows.

Parsing notes:

  • Every operation passes --limit-output, whose pipe-delimited rows are the machine-readable format, with --no-progress and --no-color riding along as post_args on every invocation. Nothing else may join them without being driven first: Chocolatey’s parser hands an option it does not recognize to the command as a positional argument, so list and outdated filter on it and match nothing, while search folds it into the query and the feed answers 406. All three fail silently, returning an empty inventory rather than an error.

  • choco search reaches into all package metadata by default: the {id_name_only_args} template narrows it to package IDs for mpm’s default --id-name-only mode, and {exact_args} maps --exact.

  • --by-id-only answers nothing for a search term under four characters, and the community feed reports 0 packages found at exit 0 rather than refusing. Measured against Chocolatey 2.7.4: vim, git, zip, gcc and foo all return empty, while curl, make, java, 7zip and python return results. --exact is unaffected and finds vim either way, so a short query is only ever short-changed in the default mode.

The version floor is the first release where choco list reports installed packages without the removed --local-only flag.

What mpm adds to choco

mpm reaches across every manager at once, not choco alone: mpm installed and mpm outdated cover choco alongside every other manager you run in one table, mpm upgrade --all updates them together, and mpm sbom exports the whole machine as one bill of materials.

Every mpm command also gains --dry-run and --plan previews, cross-scheme version comparison and purl identifiers. See manager augmentations for how each one is built.

Your choco commands, in mpm

You already know choco: each operation maps one-to-one onto mpm, in an interface shared by every manager.

To…

With choco

With mpm

List what’s installed

choco list --limit-output

mpm --choco installed

List outdated packages

choco outdated --limit-output

mpm --choco outdated

Search for a package

choco search <query> --limit-output <id_name_only_args> <exact_args>

mpm --choco search <exact_args>

Install a package

choco install <package_id> --yes --limit-output

mpm install pkg:choco/<package_id>

Upgrade one package

choco upgrade <package_id> --yes --limit-output

mpm --choco upgrade <package_id>

Upgrade everything

choco upgrade all --yes --limit-output

mpm --choco upgrade --all

Remove a package

choco uninstall <package_id> --yes --limit-output

mpm remove pkg:choco/<package_id>

Prefix any command above with --dry-run to simulate the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.

Operations

Operation

Supported

installed

outdated

orphans

search

install

upgrade

upgrade_all

remove

sync

cleanup

doctor

Selecting and configuring choco

Deselect choco for a single run with --no-choco, or persist the choice in your configuration:

[mpm]
choco = false

The arguments and environment variables listed in the box atop this page are forced on every choco call, so runs stay quiet, non-interactive and reproducible: the defaults you would set in CI anyway.

Keep it enabled but tune how mpm drives it with a per-manager override:

[mpm.overrides.choco]
timeout = 900

mpm config-template choco prints every overridable attribute as a ready-to-paste block.

Recipes

A few jobs you would otherwise script around choco, one mpm command each:

  • Snapshot and clone a machine: mpm --choco dump choco.toml, then mpm restore choco.toml on the next one.

  • Export a compliance SBOM: mpm --choco sbom (CycloneDX by default, --spdx for SPDX).

Privilege escalation

System-wide manager: mpm wraps its privileged operations in sudo out of the box. Instead of letting the tool prompt mid-run, mpm primes the credential cache up-front, with a single branded password prompt at most. Turn escalation off for rootless setups with --no-sudo or the per-manager sudo override.

Root is required for its install, remove, upgrade, upgrade_all operations.

See privilege escalation for the full policy.

Cooldown

State of Chocolatey’s release-age gating, from the cooldown support table:

Status: ❌ None

A cooldown only pays off where a compromised release can be withdrawn while the clock runs, and can only be emulated where the registry dates its releases. From the retraction table:

  • Registry: Chocolatey Community Repository (pkg:chocolatey)

  • Retraction: Unlist: moderators can unlist individual package versions (list/unlist), and malicious scripts are grounds for banning the maintainer and deleting their packages (moderation)

With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --cooldown best-effort opts back in.

Version probe

The version is probed by running:

$ choco --version
2.2.2

and extracted with:

r"(?P<version>\S+)"

Reference traces

Raw native outputs captured in the bundled definition: the reference mpm’s parsers were written against. If you know Chocolatey well and a transcript below looks wrong, or a newer release changed its output format, report it.

$ choco list --limit-output
adobereader|11.0.10
ccleaner|5.03.5128
chocolatey|0.9.9.2
ConEmu|14.9.23.0
gimp|2.8.14.1
git|1.9.5.20150114
$ choco outdated --limit-output
7zip.commandline|16.02.0.20170209|16.02.0.20170209|false
atom|1.23.3|1.24.0|false
bulkrenameutility|3.0.0.1|3.0.0.1|false
$ choco search {query} --limit-output {id_name_only_args} {exact_args}
virtualbox|6.1.0
VirtualBox.ExtensionPack|5.1.10.20161223
enigmavirtualbox|9.20
virtualbox-guest-additions-guest.install|6.1.0

Feed any of these through mpm and the raw output becomes one uniform table, the same shape for every manager: filter it, project columns, or export it (mpm --choco installed --output json, or csv, toml, yaml), each package carrying a purl and a version comparable across managers.

Upstream project

Metrics

chocolatey/choco

Activity

commit activity commits since open issues open pull requests

Popularity

forks watchers contributors

Metadata

latest release release date license main language

Changelog

  • 8.0.0.dev0 (unreleased)

    • Fix installed, outdated and search, which returned nothing at all: every invocation carried a --retry-count=3 option Chocolatey does not have, and its parser passed it on as a package filter matching nothing.

    • Escalate install, remove and both upgrade paths. Chocolatey locks its C:\ProgramData\chocolatey tree to administrators, so each of them failed unprivileged with a permission error.

  • 7.3.0 (2026-07-17)

    • Convert from a Python class to a bundled configuration definition, the native exact and ID-restricted search switches declared through the new refinement templates.

  • 6.4.0 (2026-04-27)

    • Add remove operation. Closes #1775.

  • 6.1.1 (2026-02-06)

    • Add --retry-count=3 option to all choco invocations.

  • 5.15.0 (2024-02-25)

    • Bump minimal choco requirement to 2.0.0.

  • 5.11.0 (2023-01-30)

    • Bump minimal choco requirement to 0.10.4.

  • 4.5.0 (2021-09-30)

    • Add Chocolatey package manager.