sow ls
sow ls lists packages in the selected Dists’ Desired membership. Each row also shows the package’s Desired and Built locations across the Repository. Use it to obtain package references for show or rm.
Synopsis
| Flag | Meaning | Default |
|---|---|---|
-C, --workdir DIR |
Workspace discovery start directory | current directory |
-r, --repo NAME |
Select a Repository | selection rules |
-d, --dist NAME |
Select a Dist; repeatable | selection rules |
--json |
Output JSON | false |
Output
| Column | Meaning |
|---|---|
SHA256 |
Immutable content identity; valid input to show and rm |
COORDINATE |
Canonical rpm: or deb: package reference |
DISTS |
Desired membership across the Repository |
BUILT_DISTS |
Membership present in the current Built Generation |
POOL_PATH |
Repository-relative immutable payload path |
The first line reports whether the selected Dists are dirty. Configuration changes can make them dirty even when membership counts match.
-d selects rows by Desired membership. The DISTS and BUILT_DISTS columns then show all locations of each returned package in the Repository. A package removed with rm --skip is absent from this list even while an older Built index still contains it. An empty BUILT_DISTS means no local Built Dist currently includes that package.
Each package appears once, with multiple Dists separated by commas. An empty Dist produces a successful result with no package rows.
Selection
ls requires an unambiguous Dist set. In a multi-Dist Repository, pass one or more -d values or
run from inside <repo>/dists/<dist>/.
With --json, the same rows appear in result.packages.
Examples
List exact references for all objects not yet built:
List pool paths in deterministic order:
Exit codes
| Code | Trigger |
|---|---|
0 |
Membership printed, including an empty list |
1 |
Runtime I/O failure |
2 |
Usage error, Workspace not found, or implicit Repository/Dist selection is ambiguous |
5 |
Repository state database unreadable or inconsistent |
6 |
Explicit Repository or Dist is not configured |
See also
sow show— inspect one listed objectsow where— locate an object across the Workspacesow rm— remove a listed reference from Desired Membership- Package References — accepted identity forms