Skip to main content
The zb outdated command checks all installed packages against the latest available versions and reports which ones have updates available.

Usage

Options

flag
Show only package names, one per line. Cannot be used with --verbose or --json.
flag
Show detailed version information with color-coded output. Cannot be used with --quiet or --json.
flag
Output results as JSON array. Cannot be used with --quiet or --verbose.

Description

This command compares the installed versions of all packages against the latest versions available in the formula repository. It’s useful for discovering which packages can be upgraded. The command supports three output formats:
  • Default: Shows package name with installed and available versions
  • Quiet (--quiet): Shows only package names (useful for scripting)
  • Verbose (--verbose): Shows detailed information with color highlighting
  • JSON (--json): Machine-readable structured output
The --quiet, --verbose, and --json flags are mutually exclusive - you can only use one at a time.

Examples

Check for outdated packages with default output:
Output:
List only package names (quiet mode):
Output:
Show detailed version information:
Output:
Get JSON output for scripting:
Output:
Use in a shell script to upgrade outdated packages:

Output Formats

Default Format

Shows package name with versions in the format: name (installed) < available

Quiet Format

One package name per line, with no additional information. This format is ideal for:
  • Shell scripts that need to process the list
  • Piping to other commands
  • Counting outdated packages with wc -l

Verbose Format

Color-coded output showing:
  • Package name
  • Installed version (in red)
  • Arrow separator
  • Available version (in green)

JSON Format

Structured JSON array where each object contains:
  • name: Package name
  • installed_versions: Array of installed versions (currently always contains one version)
  • current_version: Latest available version

When No Updates Available

When all packages are up to date:
Output:
In quiet mode, no output is produced when everything is current.
  • zb update - Update formula cache before checking for outdated packages
  • zb install - Install or upgrade packages
  • zb list - List all installed packages