Homebrew Cask¶
- ID
cask- Home page
- Version requirement
>= 6
- Platforms
🍎 macOS
- Operations
installed·outdated·search·install·upgrade·upgrade_all·remove·sync·cleanup·doctor- purl types
pkg:cask- Brewfile entry
cask, in Brewfile backups- CLI name
brew- Every call
brew <command> --cask- Forced environment
HOMEBREW_NO_ANALYTICS=1·HOMEBREW_NO_AUTO_UPDATE=1·HOMEBREW_NO_ENV_HINTS=1- Issues and PRs
- Source
The cask half of Homebrew: pre-built macOS applications.
Homebrew is the umbrella project behind the brew CLI. mpm splits it into
two managers over the same binary, this one for casks and Brew
for formulae; a forced --cask selector keeps every call on the cask side.
Casks ship macOS .app bundles and .pkg installers, so this manager is
macOS-only.
mpm drives brew non-interactively with the same environment pins as
Brew (analytics and hints off, HOMEBREW_NO_AUTO_UPDATE so the
metadata refresh stays a separate sync) and the same >=6.0.0 floor
(ask mode default, the --yes opt-out, and the tap-trust gate that
Homebrew.trust_tap() clears for user/tap/name packages).
Note
Casks self-escalate: their artifacts (.pkg installers, kernel
extensions) invoke sudo from inside brew, so mpm never wraps a
cask command in its own sudo.
Caution
Casks flagged auto_updates true or version :latest update
themselves, and brew upgrade skips them unless --greedy is
passed. mpm supplies --greedy (to outdated and to
upgrade --all) unless auto-updating packages are being ignored.
--greedy conflicts with --formula, so this handling is cask-only
and cannot fold into the base shared with Brew.
What mpm adds to cask¶
mpm reaches across every manager at once, not cask alone: mpm installed and mpm outdated cover cask 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 cask commands, in mpm¶
You already know cask: 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 |
|
|
Clear caches |
|
|
Run health checks |
|
|
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 |
Notes |
|---|---|---|
|
✓ |
|
|
✓ |
|
|
||
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
Selecting and configuring cask¶
Deselect cask for a single run with --no-cask, or persist the choice in your configuration:
[mpm]
cask = false
The arguments and environment variables listed in the box atop this page are forced on every cask 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.managers.cask]
timeout = 900
mpm config-template cask prints every overridable attribute as a ready-to-paste block.
Recipes¶
A few jobs you would otherwise script around cask, one mpm command each:
Snapshot and clone a machine:
mpm --cask dump cask.toml, thenmpm restore cask.tomlon the next one.Export a Brewfile entry instead:
mpm --cask dump --brewfile Brewfile.Export a compliance SBOM:
mpm --cask sbom(CycloneDX by default,--spdxfor SPDX).Gate CI on health:
mpm --cask doctorrelays Homebrew Cask’s own diagnosis and exits non-zero on trouble.
Privilege escalation¶
Homebrew Cask runs sudo from inside its own commands: mpm never wraps it, keeps an already-warm credential cache alive for those internal escalations, and warns when a mutating call goes silent on a terminal with a cold cache, since a password prompt may be hiding in the stream.
See privilege escalation for the full policy.
Cooldown¶
State of Homebrew Cask’s release-age gating, from the cooldown support table:
Status: 🚧 Same as
brew(inherits)Reference: Homebrew/brew#21129
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: Homebrew taps
Retraction: Index revert through the tap’s git history, over a package-level lifecycle:
deprecate!still installs with a warning,disable!makes the action fail, removal deletes it (lifecycle)Publish date: ❌ a formula records the upstream version, not its publication date
With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.
Version probe¶
The version is extracted from the output of brew --version with:
r"Homebrew\s+(?P<version>\S+)"
Changelog¶
7.4.0(2026-07-25)cleanupinvokes the cache scrub with the long-form--scrubflag.Plain
cleanupno longer removes orphaned packages: their native sweeps moved behindcleanup --orphans. This also stopsemerge’s cleanup from triggering its pre-depclean world upgrade unless--orphansis given.
7.3.0(2026-07-17)upgrade --allnow passes--greedytobrew upgradewhen auto-updating packages are included, matching theoutdatedbehavior. Auto-updating casks reported as outdated were never upgraded. Closes #1940.
6.2.1(2026-03-26)Remove
--quietfromoutdatedcommand where it conflicts with--json. Closes #1703.
6.2.0(2026-03-25)Add
--quietoption to allbrewinvocations to reduce log verbosity.
5.6.0(2022-09-26)Add support for
removeoperation in homebrew.
5.5.0(2022-07-08)Fix parsing of multiple reported installed versions.
5.3.0(2022-06-25)Implement extended search on description.
4.12.0(2022-04-04)Fix execution of
synccommand.
4.11.0(2022-04-03)Do not let homebrew auto-update on other commands. Refs #36.
Disable analytics and env hints in logs.
4.9.0(2022-01-03)Thorough cleanup: call
autoremovecommands to remove unused dependencies and use--prune=allto scrub the whole cache.
3.6.0(2021-01-03)Bump minimal requirement of
brewto2.7.0.Address deprecation of
caskCLI subcommands.
3.5.0(2020-09-20)Bump minimal requirement of
brewto2.5.0.Fix warning to deprecated options.
3.4.2(2020-09-13)Do not mix-up brew and cask upgrades.
3.2.0(2020-05-31)Rely on JSON output to fetch outdated packages.
Bump minimal requirement to 2.2.15.
3.0.0(2020-03-25)Allow independent search for each manager.
Bump minimal requirement of to
2.2.9.
2.8.0(2019-01-03)Remove
cask-specificversion,syncandsearchcommand. Closes #47.
2.7.0(2018-04-02)2.6.0(2017-09-10)Use new
brew cask outdatedcommand.Remove usage of deprecated
brew cask updatecommand.Bump minimal requirement of
caskto1.1.12.
2.5.0(2017-03-01)2.3.0(2017-01-15)2.1.1(2016-12-17)Fix parsing of non-point releases of
brewandcaskversions. Closes #15.
1.12.0(2016-12-03)Fix parsing of multiple versions of
caskinstalled packages.Fix lexicographical sorting of
brewandcaskpackage versions.
1.11.0(2016-11-30)Bump minimal requirement of
brewto 1.0.0 andcaskto 1.1.0.Fix fetching of outdated
caskpackages.Fix upgrade of
caskpackages.
1.9.0(2016-09-23)Fix parsing of unversioned cask packages. Closes #6.
1.7.0(2016-08-16)Workaround for Homebrew Cask full upgrade command.
1.3.0(2016-07-09)Force Cask update before evaluating available packages.
1.2.0(2016-07-08)Fixup
brew caskchecking.
1.0.0(2016-07-05)Add support for Homebrew and Cask.