Chocolatey¶
- ID
choco- Home page
- 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
- Source
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-progressand--no-colorriding 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, solistandoutdatedfilter on it and match nothing, whilesearchfolds it into the query and the feed answers 406. All three fail silently, returning an empty inventory rather than an error.choco searchreaches into all package metadata by default: the {id_name_only_args} template narrows it to package IDs for mpm’s default--id-name-onlymode, and {exact_args} maps--exact.--by-id-onlyanswers nothing for a search term under four characters, and the community feed reports0 packages foundat exit 0 rather than refusing. Measured against Chocolatey 2.7.4:vim,git,zip,gccandfooall return empty, whilecurl,make,java,7zipandpythonreturn results.--exactis unaffected and findsvimeither 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 |
With |
|---|---|---|
List what’s installed |
|
|
List outdated packages |
|
|
Search for a package |
|
|
Install a package |
|
|
Upgrade one package |
|
|
Upgrade everything |
|
|
Remove a package |
|
|
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 |
|---|---|
|
✓ |
|
✓ |
|
|
|
✓ |
|
✓ |
|
✓ |
|
✓ |
|
✓ |
|
|
|
|
|
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, thenmpm restore choco.tomlon the next one.Export a compliance SBOM:
mpm --choco sbom(CycloneDX by default,--spdxfor 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 |
|
|---|---|
Activity |
|
Popularity |
|
Metadata |
|
Changelog¶
8.0.0.dev0(unreleased)Fix
installed,outdatedandsearch, which returned nothing at all: every invocation carried a--retry-count=3option Chocolatey does not have, and its parser passed it on as a package filter matching nothing.Escalate
install,removeand both upgrade paths. Chocolatey locks itsC:\ProgramData\chocolateytree 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
removeoperation. Closes #1775.
6.1.1(2026-02-06)Add
--retry-count=3option to allchocoinvocations.
5.15.0(2024-02-25)Bump minimal
chocorequirement to2.0.0.
5.11.0(2023-01-30)Bump minimal
chocorequirement to0.10.4.
4.5.0(2021-09-30)Add Chocolatey package manager.