sow show
sow show prints what SOW knows about one package in a repository: its exact coordinate and
SHA-256, where its file lives in the pool, and which Dists list it in desired state and in the
current build. Use it to turn a name into an exact reference, or to see why a package is or is not
in an index. To search every repository at once, use sow where; to list a
whole Dist, use sow ls.
Synopsis
PACKAGE must resolve to exactly one package; see Package reference.
| Flag | Meaning | Default |
|---|---|---|
-C, --workdir DIR |
Workspace discovery start directory | current directory |
-r, --repo NAME |
Repository to search | selection rules |
-d, --dist NAME |
Only consider desired members of this Dist; repeatable | whole repository |
--json |
Print the complete package record | false |
Without -d, the lookup also finds stored packages that no Dist lists any more, which is how you
inspect a package after removing it everywhere. With -d, a candidate must be a desired member of a
selected Dist.
Output
The lines give the identity, the pool path, and the Dists that list the package in desired state
(dists) and in the current Generation (built_dists). Both lists cover the whole repository,
even when -d narrowed the lookup.
--json returns the complete package record under result.package in the
standard envelope. Besides the header fields, it carries these
normalized fields:
| Field | Meaning |
|---|---|
canonical_arch |
x86_64, aarch64, or neutral for RPM noarch / DEB all |
kind |
Policy class: main, debuginfo, debugsource, llvmjit, dbgsym, or dbg |
source |
Normalized source-package name |
payload_sha256 |
RPM digest that ignores the signature, so re-signing the same package is idempotent |
signature_key |
Key ID of the embedded package signature, when present: RPM v6 native RPMSIGTAG_OPENPGP (tag 278), RSA/DSA/ECDSA/EdDSA in tag 267, or legacy PGP tags |
storage |
pending before the package has been built; pool once it is in the local package pool |
dists / built_dists |
Desired and current built membership |
Package reference
PACKAGE accepts a sha256:<hex> content identity, a canonical rpm:<NEVRA> or
deb:<name>=<version>:<arch> coordinate, a full package filename, or a bare binary name. See
Package References for the exact grammar.
A bare name must match exactly one package in the selected scope. sow rm foo removes every
matching version, but show describes one object, so it refuses an ambiguous name and lists the
candidates:
Copy an exact coordinate or SHA-256 from the error or from sow ls and retry.
Exit codes
| Code | Trigger |
|---|---|
0 |
One package printed |
1 |
Runtime I/O failure |
2 |
Usage error, workspace not found, or implicit repository selection is ambiguous |
5 |
Repository state database unreadable or inconsistent |
6 |
Explicit repository or Dist is not configured, or the reference matched nothing or several packages |
See also
sow ls— exact identities of every member of a Distsow where— search across repositoriessow rm— remove matching desired membership- JSON Output — complete result schema