sow ls
sow ls lists the packages in the selected Dists’ desired membership and shows, for each one,
which Dists want it and which already contain it in the current Generation. Use it to copy
exact references for show or rm, or to spot
packages that are waiting for a build. To find a package anywhere in the workspace, use
sow where.
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
The first line says whether the selected Dists are dirty; a configuration change can make them dirty even when membership is unchanged. Each package then appears once:
| 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 Generation |
POOL_PATH |
Immutable package path, relative to the repository |
-d chooses which packages are listed, by desired membership; the DISTS and BUILT_DISTS
columns then show every place in the repository that package appears, comma-separated. An empty
BUILT_DISTS means no Dist includes the package in its current build yet. A package removed with
rm --skip is already gone from this list, even while the last built index still contains it. An
empty Dist succeeds with no package rows. With --json, the rows are in result.packages.
Examples
List exact references for all objects not yet built:
List pool paths in deterministic order:
Selection
ls needs a definite set of Dists. In a repository with several Dists, pass one or more -d
values or run it from inside <repo>/dists/<dist>/:
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