Skip to main content
Displays all packages currently installed by zerobrew, showing their names and versions.

Usage

Arguments

This command takes no arguments.

Options

path
Environment: ZEROBREW_ROOTOverride the root directory for zerobrew’s content-addressable store.
path
Environment: ZEROBREW_PREFIXOverride the prefix directory where packages are linked.
number
Default: 20Number of concurrent operations to perform.
boolean
Alias: --yesEnvironment: ZEROBREW_AUTO_INITAutomatically initialize zerobrew if not already set up.

Output Format

Each installed package is displayed on a single line:
  • name - The formula name (bold)
  • version - The installed version (dimmed)

Examples

List installed packages

No packages installed

If you haven’t installed any packages yet:

After installing packages

Note that dependencies (like openssl@3) are also shown.

Use Cases

Check what’s installed

Quickly see all packages managed by zerobrew:

Export to Brewfile

Use list output to manually create a Brewfile, or use zb bundle dump to do it automatically:

Count installed packages

Find specific package

Script usage

Check if a package is installed in a script:

Implementation Details

The list command reads from zerobrew’s local installation database, which tracks:
  • Formula name
  • Installed version
  • Store key (content-addressable hash)
  • Installation timestamp
  • Link status
For more detailed information about a specific package, use zb info.

Comparison with Homebrew

Performance

The list command is instant, as it reads from a local SQLite database rather than scanning the filesystem: