Skip to content

sow show

Look up one package: its exact identity, pool path, and which Dists list it.

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

sow show PACKAGE [-C|--workdir DIR] [-r|--repo NAME] [-d|--dist NAME]... [--json]

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

sow show centos-release-6-0.el6.centos.5.x86_64.rpm -r demo -d el9
package repository=demo coordinate="centos-release-0:6-0.el6.centos.5.x86_64" sha256:ffd9e7bdaa4884831a6c055ada01dac96b84c50a8d518dac409b445af5dadc16 format=rpm architecture=x86_64 size=19776 storage=pool
pool=pool/c/centos-release/centos-release-6-0.el6.centos.5.x86_64.rpm
dists=el9 built_dists=el9

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:

sow show libpq5 -r pgsql -d trixie
operation rejected: managed: operation rejected: package reference "libpq5" is ambiguous: deb:libpq5=18.2-1:amd64 sha256:fa84dc64..., deb:libpq5=18.3-1:amd64 sha256:491992c5..., deb:libpq5=18.3-1:arm64 sha256:3a2f7ef7...

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 Dist
  • sow where — search across repositories
  • sow rm — remove matching desired membership
  • JSON Output — complete result schema

Table reader