# ed app-updates inspect-package

> ed app-updates inspect-package in the Edith ed command line reference. ed app-updates

- Canonical URL: https://getedith.pro/docs/cli/app-updates/inspect-package
- Updated: 2026-12-02

[`ed app-updates`](https://getedith.pro/docs/cli/app-updates)

[The `ed` command line](https://getedith.pro/docs/cli)

```bash
ed app-updates inspect-package ./Example.pkg [--json]
```

Inspects a selected flat macOS installer package using a private temporary copy. Reads the archive table of contents directly, then reads component identifiers, versions and install locations from each `PackageInfo`, declared install scripts and Distribution checks, payload paths from each component's bill of materials with `lsbom`, and system signature diagnostics from `pkgutil`. Product archives with several components are supported, including component names that the Distribution percent-encodes. Inspection never installs the package, never extracts its payload or script archives, and never executes its contents.

The text output is the same concise manifest available from App Updates > Package inspector > Copy manifest. It includes up to 80 payload paths and 20 script declarations, with explicit omission counts. Each path is an install path: the component's install location joined with the path from its bill of materials, listed in component order. Paths from different components stay separate unless they resolve to the same install path. Script declarations and installer choices can change the final installed files. Script archives are identified without reading or executing their contents.

`--json` returns `name`, `sizeBytes`, `components`, `payloadPaths`, `scripts`, `signatureStatus`, `signatureDetails`, `notices`, and `manifest`. The arrays contain every entry accepted within the inspection limits.

Exit status is 0 when the report is printed. An unsupported, malformed or oversized package, or a failure of the system tools, prints `error:` and the reason on standard error and exits with status 1 without a partial report. At most two inspections run at once; a further request fails with status 1 until one finishes.

Limits: 512 MiB package, 4 MiB compressed and inflated XAR table, 20,000 archive entries, 16 metadata documents, 256 KiB per metadata document, 16 MiB per bill of materials, 512 script declarations, 10,000 payload paths, 1 MiB path output per component, 64 KiB signature output, 2 MiB encoded report, 5 seconds per tool call and 30 seconds for the inspection. XML entities, document type declarations and unsafe archive entry names are rejected. Bundle packages, archive entries stored with compression other than gzip, packages whose payload listing fails, and external component references are unsupported. No packages are downloaded.

The owning engine operation is `ed invoke appUpdates appUpdates.package.inspect --json '"/absolute/path/Example.pkg"'`. It accepts one JSON path string and returns the same report without the derived `manifest` field. Use the named command for paths relative to the invoking terminal.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
