<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>standard-repository on SOW</title>
    <link>https://sow.pgsty.com/tags/standard-repository/</link>
    <description>Recent content in standard-repository on SOW</description>
    <generator>Hugo</generator>
    <language>en</language>
    
    
    
      <lastBuildDate>Wed, 02 Dec 2026 10:23:33 +0800</lastBuildDate>
    
    
      <atom:link href="https://sow.pgsty.com/tags/standard-repository/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>sow build</title>
        <link>https://sow.pgsty.com/docs/command/build/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/build/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow build&lt;/code&gt; reapplies the current &lt;code&gt;limit&lt;/code&gt; and &lt;code&gt;exclude&lt;/code&gt; policy and renders the indexes and configured signatures for each affected Dist. Once packages are in &lt;code&gt;pool/&lt;/code&gt;, it atomically switches each Dist directory and records the repository Generation after the switches complete. &lt;code&gt;add&lt;/code&gt; and &lt;code&gt;rm&lt;/code&gt; build by default. Run &lt;code&gt;build&lt;/code&gt; yourself after &lt;code&gt;add --skip&lt;/code&gt; or&#xA;&lt;code&gt;rm --skip&lt;/code&gt;, after editing &lt;code&gt;sow.yml&lt;/code&gt;, or to finish an interrupted operation. Run&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/command/check/&#34;&gt;&lt;code&gt;sow check&lt;/code&gt;&lt;/a&gt; afterwards before you deliver the tree.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow status</title>
        <link>https://sow.pgsty.com/docs/command/status/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/status/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow status&lt;/code&gt; tells you whether a repository needs a build, how much data waits in the pending area,&#xA;and whether a writer holds the lock. It reads only recorded state and never hashes package files, so&#xA;it is cheap enough to run before every build or from a monitoring loop. To verify the files&#xA;themselves, use &lt;a href=&#34;https://sow.pgsty.com/docs/command/check/&#34;&gt;&lt;code&gt;sow check&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-2a95e0f7-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-2a95e0f7-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow status [-C|--workdir DIR] [-r|--repo NAME] [-d|--dist NAME]... [--json]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;td-table-scroll td-table-scroll--static&#34;&gt;&#xA;&lt;table class=&#34;wide expand td-table--wide&#34;&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Flag&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Meaning&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Default&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-C, --workdir DIR&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/command/#workspace-discovery&#34;&gt;Workspace discovery&lt;/a&gt; start directory&lt;/td&gt;&#xA;      &lt;td&gt;current directory&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-r, --repo NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Select a repository&lt;/td&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/command/#repository-selection&#34;&gt;selection rules&lt;/a&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-d, --dist NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Report dirty and readiness state for these Dists only; repeatable&lt;/td&gt;&#xA;      &lt;td&gt;all Dists&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;--json&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Output JSON&lt;/td&gt;&#xA;      &lt;td&gt;false&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;output&#34;&gt;Output&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;After an &lt;code&gt;add --skip&lt;/code&gt;, the repository has a change that is not built yet:&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow where</title>
        <link>https://sow.pgsty.com/docs/command/where/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/where/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow where&lt;/code&gt; answers &amp;ldquo;which repositories and Dists carry this package?&amp;rdquo; for the whole workspace. Use&#xA;it before you remove or replace a package that several repositories share, or to confirm that an&#xA;&lt;code&gt;add&lt;/code&gt; landed where you expected. Unlike &lt;a href=&#34;https://sow.pgsty.com/docs/command/show/&#34;&gt;&lt;code&gt;sow show&lt;/code&gt;&lt;/a&gt;, it searches every&#xA;repository by default and reports locations instead of the full package record.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-2d750758-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-2d750758-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow where PACKAGE [-C|--workdir DIR] [-r|--repo NAME] [-d|--dist NAME]... [--json]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;td-table-scroll td-table-scroll--static&#34;&gt;&#xA;&lt;table class=&#34;wide expand td-table--wide&#34;&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Flag&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Meaning&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Default&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-C, --workdir DIR&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/command/#workspace-discovery&#34;&gt;Workspace discovery&lt;/a&gt; start directory&lt;/td&gt;&#xA;      &lt;td&gt;current directory&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-r, --repo NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Search only this repository&lt;/td&gt;&#xA;      &lt;td&gt;all repositories&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-d, --dist NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Search only these Dists; repeatable&lt;/td&gt;&#xA;      &lt;td&gt;all Dists&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;--json&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Output JSON&lt;/td&gt;&#xA;      &lt;td&gt;false&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;output&#34;&gt;Output&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The first line echoes the reference and the number of locations; each further line is one&#xA;repository that contains the package:&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow show</title>
        <link>https://sow.pgsty.com/docs/command/show/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/show/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow show&lt;/code&gt; prints what SOW knows about one package in a repository: its exact coordinate and&#xA;SHA-256, where its file lives in the pool, and which Dists list it in desired state and in the&#xA;current build. Use it to turn a name into an exact reference, or to see why a package is or is not&#xA;in an index. To search every repository at once, use &lt;a href=&#34;https://sow.pgsty.com/docs/command/where/&#34;&gt;&lt;code&gt;sow where&lt;/code&gt;&lt;/a&gt;; to list a&#xA;whole Dist, use &lt;a href=&#34;https://sow.pgsty.com/docs/command/ls/&#34;&gt;&lt;code&gt;sow ls&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow ls</title>
        <link>https://sow.pgsty.com/docs/command/ls/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/ls/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow ls&lt;/code&gt; lists the packages in the selected Dists&amp;rsquo; desired membership and shows, for each one,&#xA;which Dists want it and which already contain it in the current Generation. Use it to copy&#xA;exact references for &lt;a href=&#34;https://sow.pgsty.com/docs/command/show/&#34;&gt;&lt;code&gt;show&lt;/code&gt;&lt;/a&gt; or &lt;a href=&#34;https://sow.pgsty.com/docs/command/rm/&#34;&gt;&lt;code&gt;rm&lt;/code&gt;&lt;/a&gt;, or to spot&#xA;packages that are waiting for a build. To find a package anywhere in the workspace, use&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/command/where/&#34;&gt;&lt;code&gt;sow where&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-ce740993-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-ce740993-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow ls [-C|--workdir DIR] [-r|--repo NAME] [-d|--dist NAME]... [--json]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;td-table-scroll td-table-scroll--static&#34;&gt;&#xA;&lt;table class=&#34;wide expand td-table--wide&#34;&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Flag&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Meaning&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34;&gt;Default&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-C, --workdir DIR&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Workspace discovery start directory&lt;/td&gt;&#xA;      &lt;td&gt;current directory&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-r, --repo NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Select a repository&lt;/td&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/command/#repository-selection&#34;&gt;selection rules&lt;/a&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;-d, --dist NAME&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Select a Dist; repeatable&lt;/td&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/command/#dist-selection&#34;&gt;selection rules&lt;/a&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;--json&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Output JSON&lt;/td&gt;&#xA;      &lt;td&gt;false&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;output&#34;&gt;Output&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-ce740993-fence-1&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;console&#34; data-td-line-count=&#34;4&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-ce740993-fence-1-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;sow ls -r pigsty -d el9&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;repository=pigsty dists=el9 dirty=false&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;SHA256&#x9;COORDINATE&#x9;DISTS&#x9;BUILT_DISTS&#x9;POOL_PATH&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;sha256:d6f332ed157de1d42058ec785b392a1cc4b5836c27830af8fbf083cce29ef0ab&#x9;rpm:epel-release-0:7-5.noarch&#x9;el9&#x9;el9&#x9;pool/e/epel-release/epel-release-7-5.noarch.rpm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;The first line says whether the selected Dists are dirty; a configuration change can make them&#xA;dirty even when membership is unchanged. Each package then appears once:&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow rm</title>
        <link>https://sow.pgsty.com/docs/command/rm/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/rm/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow rm&lt;/code&gt; takes packages out of the selected Dists&amp;rsquo; desired membership and rebuilds those Dists&#39;&#xA;local indexes. Use it to withdraw a broken or unwanted package; preview the result with &lt;code&gt;--check&lt;/code&gt;,&#xA;or stage several removals with &lt;code&gt;--skip&lt;/code&gt; and build once. The package files stay in &lt;code&gt;pool/&lt;/code&gt;, because&#xA;other Dists or retained Generations may still use them, until &lt;a href=&#34;https://sow.pgsty.com/docs/command/gc/&#34;&gt;&lt;code&gt;sow gc&lt;/code&gt;&lt;/a&gt; can&#xA;reclaim them. To drop a whole Dist, use &lt;a href=&#34;https://sow.pgsty.com/docs/command/dist/#sow-dist-rm&#34;&gt;&lt;code&gt;sow dist rm&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-96bcb789-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-96bcb789-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow rm PACKAGE... [-c|--check] [--skip] [-j|--jobs N] [-C|--workdir DIR] [-r|--repo NAME] [-d|--dist NAME]... [-T|--timeout DUR | -N|--no-wait] [--json] [--passfile PATH]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;PACKAGE&lt;/code&gt; is a package name, coordinate, file name, or &lt;code&gt;sha256:&lt;/code&gt; reference; see&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/command/rm/#package-references&#34;&gt;Package references&lt;/a&gt;. A &lt;code&gt;--check&lt;/code&gt; preview can render signed metadata, so it&#xA;also accepts &lt;a href=&#34;https://sow.pgsty.com/docs/command/#passfile&#34;&gt;&lt;code&gt;--passfile&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow add</title>
        <link>https://sow.pgsty.com/docs/command/add/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/add/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow add&lt;/code&gt; is how packages enter a &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt;.&#xA;It reads each file&amp;rsquo;s format and architecture from the package header, stores the file once in the&#xA;repository&amp;rsquo;s pool, adds it to the selected Dists&amp;rsquo; desired membership, applies each Dist&amp;rsquo;s&#xA;&lt;code&gt;exclude&lt;/code&gt; and &lt;code&gt;limit&lt;/code&gt; policy, and then builds those Dists&amp;rsquo; local indexes. Use &lt;code&gt;--skip&lt;/code&gt; to import several batches and build once at the end, and&#xA;run &lt;a href=&#34;https://sow.pgsty.com/docs/command/publish/&#34;&gt;&lt;code&gt;sow publish&lt;/code&gt;&lt;/a&gt; afterwards to update a remote target. To index a&#xA;directory of packages in place, without a workspace, use &lt;a href=&#34;https://sow.pgsty.com/docs/command/create/&#34;&gt;&lt;code&gt;sow create&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Membership Policy</title>
        <link>https://sow.pgsty.com/docs/feature/policy/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/feature/policy/</guid>
        <description>&lt;p&gt;Upstream build output usually contains packages you do not want to ship: &lt;code&gt;-debuginfo&lt;/code&gt; and&#xA;&lt;code&gt;-debugsource&lt;/code&gt; RPMs, PostgreSQL &lt;code&gt;-llvmjit&lt;/code&gt; subpackages, Debian &lt;code&gt;-dbgsym&lt;/code&gt; packages. And a&#xA;repository you keep adding to keeps every version it ever received, so the index every client&#xA;downloads grows with each release. In a &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt;,&#xA;each Dist, a named package set such as &lt;code&gt;el9&lt;/code&gt;, has two settings for this: &lt;code&gt;exclude&lt;/code&gt; drops&#xA;packages that match a rule, and &lt;code&gt;limit&lt;/code&gt; keeps only the newest versions of each package.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow dist</title>
        <link>https://sow.pgsty.com/docs/command/dist/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/dist/</guid>
        <description>&lt;p&gt;A Dist is the package set that clients see as one distribution, such as &lt;code&gt;el9&lt;/code&gt; or &lt;code&gt;trixie&lt;/code&gt;. It is&#xA;either RPM or DEB, has its own architecture views, policy (&lt;code&gt;limit&lt;/code&gt;, &lt;code&gt;exclude&lt;/code&gt;), and indexes under&#xA;&lt;code&gt;dists/&lt;/code&gt;, and shares the &lt;code&gt;pool/&lt;/code&gt; of its &lt;a href=&#34;https://sow.pgsty.com/docs/feature/managed/&#34;&gt;standard repository&lt;/a&gt; with the&#xA;other Dists. &lt;code&gt;sow dist&lt;/code&gt; creates, lists,&#xA;inspects, and removes Dists. To change a Dist&amp;rsquo;s architectures or policy, edit &lt;code&gt;sow.yml&lt;/code&gt;, then run&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/command/config/&#34;&gt;&lt;code&gt;sow config check&lt;/code&gt;&lt;/a&gt; and &lt;a href=&#34;https://sow.pgsty.com/docs/command/build/&#34;&gt;&lt;code&gt;sow build&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-33168ed5-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;4&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-33168ed5-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow dist ls [-C DIR] [-r NAME] [--json]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow dist new NAME --format rpm|deb [-C DIR] [-r NAME] [-T DUR | -N] [--json] [--passfile PATH]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow dist show NAME [-C DIR] [-r NAME] [--json]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow dist rm NAME [-f|--force] [-C DIR] [-r NAME] [-T DUR | -N] [--json] [--passfile PATH]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;dist new&lt;/code&gt; and &lt;code&gt;dist rm&lt;/code&gt; accept &lt;a href=&#34;https://sow.pgsty.com/docs/command/#passfile&#34;&gt;&lt;code&gt;--passfile&lt;/code&gt;&lt;/a&gt; for signing checks,&#xA;signing, or recovery of an interrupted operation. &lt;code&gt;dist ls&lt;/code&gt; and &lt;code&gt;dist show&lt;/code&gt; do not read password files.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Build the pigsty-infra Repository</title>
        <link>https://sow.pgsty.com/docs/tutorial/infra-repo/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/tutorial/infra-repo/</guid>
        <description>&lt;p&gt;&lt;a href=&#34;https://github.com/pgsty/infra-pkg&#34;&gt;&lt;code&gt;pgsty/infra-pkg&lt;/code&gt;&lt;/a&gt; builds the Pigsty Infra packages as&#xA;RPMs and DEBs for x86-64 and ARM64. Users of those packages want three kinds of channel: a&#xA;rolling &lt;em&gt;latest&lt;/em&gt; that gets every new version, a &lt;em&gt;stable&lt;/em&gt; channel that moves only when you&#xA;promote a release, and &lt;em&gt;monthly snapshots&lt;/em&gt; that stay fixed. This tutorial builds that&#xA;&lt;code&gt;infra&lt;/code&gt; repository as a &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt; from&#xA;already-built packages. Each channel is a pair of Dists, one per format; a Dist is a named&#xA;package set with its own indexes, and all Dists share one package pool. Real &lt;code&gt;dnf&lt;/code&gt; and &lt;code&gt;apt&lt;/code&gt; clients in containers check&#xA;each stage.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Serve and Publish Repositories</title>
        <link>https://sow.pgsty.com/docs/tutorial/serving/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/tutorial/serving/</guid>
        <description>&lt;p&gt;Putting a repository on a web server is more than copying a directory. While an update is&#xA;in flight, a client can read the new index before its packages arrive, or keep using a&#xA;cached index after you deleted the packages it names. Both show up as 404 or checksum&#xA;errors in &lt;code&gt;dnf&lt;/code&gt; and &lt;code&gt;apt&lt;/code&gt;. A hand-written copy script also cannot resume a half-finished&#xA;upload or tell you what the server actually holds.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow repo</title>
        <link>https://sow.pgsty.com/docs/command/repo/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/repo/</guid>
        <description>&lt;p&gt;A &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt; is one directory tree in the&#xA;workspace with its own package pool (&lt;code&gt;pool/&lt;/code&gt;), indexes (&lt;code&gt;dists/&lt;/code&gt;), database, and build history.&#xA;Its Dists share the pool, so a package used by several Dists is stored once. &lt;code&gt;sow repo&lt;/code&gt; creates,&#xA;lists, inspects, upgrades, and removes these repositories. Put packages in separate repositories&#xA;when they need separate signing, deletion protection, or publication targets; otherwise add Dists&#xA;to one repository with &lt;a href=&#34;https://sow.pgsty.com/docs/command/dist/&#34;&gt;&lt;code&gt;sow dist&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-d9b40e46-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;5&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-d9b40e46-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo ls [-C DIR] [--json]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo new NAME [-C DIR] [-T DUR | -N] [--json] [--passfile PATH]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo show [NAME] [-C DIR] [-r NAME] [--json]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo migrate [NAME] [--abort] [-j N] [-C DIR] [-r NAME] [-T DUR | -N] [--json] [--passfile PATH]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo rm NAME [-f|--force] [-C DIR] [-T DUR | -N] [--json] [--passfile PATH]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;repo new&lt;/code&gt;, &lt;code&gt;repo migrate&lt;/code&gt;, and &lt;code&gt;repo rm&lt;/code&gt; accept &lt;a href=&#34;https://sow.pgsty.com/docs/command/#passfile&#34;&gt;&lt;code&gt;--passfile&lt;/code&gt;&lt;/a&gt; for&#xA;signing checks, signing, or recovery of an interrupted operation. &lt;code&gt;repo ls&lt;/code&gt; and &lt;code&gt;repo show&lt;/code&gt; do not&#xA;read password files.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Core Concepts</title>
        <link>https://sow.pgsty.com/docs/start/concepts/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/start/concepts/</guid>
        <description>&lt;p&gt;SOW builds two kinds of repository and uses a handful of concepts. The first section is&#xA;enough to choose between them; the rest explains how a standard repository is put together,&#xA;and why.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span id=&#34;choose-a-mode&#34; data-td-print-local&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;plain-or-managed&#34;&gt;Simple or standard repository&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The two kinds differ in where the truth about the repository lives.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;strong&gt;simple repository&lt;/strong&gt; is a directory of package files, and the directory is the state.&#xA;&lt;code&gt;sow create&lt;/code&gt; indexes whatever packages are in it. To change the repository, change the files&#xA;and run the command again. SOW keeps nothing else, so there is nothing to back up, migrate, or&#xA;recover except the directory itself.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Standard Repositories</title>
        <link>https://sow.pgsty.com/docs/feature/managed/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/feature/managed/</guid>
        <description>&lt;p&gt;In a simple repository, whatever files are present is the only truth. That works while&#xA;something else decides what belongs there, but it cannot express intent. You cannot say&#xA;&amp;ldquo;el9 gets these packages and keeps the two newest versions.&amp;rdquo; You cannot remove a package&#xA;without deleting a file that clients with a cached index may still request. And after a&#xA;change, nothing tells you whether what clients see is what you meant to publish.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Your First Standard Repository</title>
        <link>https://sow.pgsty.com/docs/start/workspace/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/start/workspace/</guid>
        <description>&lt;p&gt;This walkthrough builds one &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt; that serves two kinds of clients: EL9 hosts&#xA;through a YUM index and Debian hosts through an APT index. Along the way you will meet what&#xA;a standard repository adds over a simple one: named package sets (Dists), a shared package pool,&#xA;and a recorded build that you can verify before anyone downloads from it.&lt;/p&gt;&#xA;&lt;p&gt;You need SOW, some RPM or DEB files (one of each format is enough), and an empty writable&#xA;directory. The examples use &lt;code&gt;/srv/sow&lt;/code&gt;; substitute a path under your home directory if you&#xA;don&amp;rsquo;t have write access to &lt;code&gt;/srv&lt;/code&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Features</title>
        <link>https://sow.pgsty.com/docs/feature/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/feature/</guid>
        <description>&lt;p&gt;Generating an index once is easy. The work is in keeping a repository correct while it&#xA;changes: new builds arrive every day, old versions and debug packages pile up, the same&#xA;package is needed by several distributions, clients expect signatures, and an update must&#xA;never leave &lt;code&gt;dnf&lt;/code&gt; or &lt;code&gt;apt&lt;/code&gt; reading an index whose packages are missing. Each page in this&#xA;section takes one of those problems, explains how SOW handles it, and why it is built that way.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow init</title>
        <link>https://sow.pgsty.com/docs/command/init/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/command/init/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow init&lt;/code&gt; turns a directory into a workspace, the home of one or more&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repositories&lt;/a&gt;: it creates the private &lt;code&gt;.sow/&lt;/code&gt; state directory, reads an existing &lt;code&gt;sow.yml&lt;/code&gt; or &lt;code&gt;sow.yaml&lt;/code&gt;, and writes a default &lt;code&gt;sow.yml&lt;/code&gt; if neither configuration file exists. If the configuration already declares&#xA;repositories and Dists, it creates the ones that are missing, so you can write &lt;code&gt;sow.yml&lt;/code&gt; first (or&#xA;keep it in version control) and let &lt;code&gt;init&lt;/code&gt; build everything it describes. It is safe to rerun at&#xA;any time. To add one repository or Dist to an existing workspace, &lt;a href=&#34;https://sow.pgsty.com/docs/command/repo/&#34;&gt;&lt;code&gt;sow repo new&lt;/code&gt;&lt;/a&gt; and&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/command/dist/&#34;&gt;&lt;code&gt;sow dist new&lt;/code&gt;&lt;/a&gt; do the same work for a single object.&lt;/p&gt;</description>
      </item>
    <item>
        <title>sow.yml Reference</title>
        <link>https://sow.pgsty.com/docs/reference/config/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/reference/config/</guid>
        <description>&lt;p&gt;&lt;code&gt;sow.yml&lt;/code&gt; is the configuration file of a workspace, the directory that holds your&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repositories&lt;/a&gt;. It declares which&#xA;repositories exist, which Dists each one serves and with what package policy, how&#xA;indexes and packages are signed, and where builds are published. Look here when you edit&#xA;the file by hand or need the exact default or validation rule for a field. A simple&#xA;repository has no configuration file: &lt;code&gt;sow create&lt;/code&gt; and &lt;code&gt;sow prune&lt;/code&gt; never read it.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Build an APT Repository</title>
        <link>https://sow.pgsty.com/docs/tutorial/apt-repo/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/tutorial/apt-repo/</guid>
        <description>&lt;p&gt;You have DEBs for Debian or Ubuntu hosts and want &lt;code&gt;apt install&lt;/code&gt; to work against your own&#xA;repository, with the same update behavior clients expect from a public archive. This&#xA;tutorial builds an APT &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt;, which&#xA;SOW maintains in a workspace: one suite, &lt;code&gt;trixie&lt;/code&gt;, with &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; indexes over a&#xA;single package pool, and an &lt;code&gt;apt&lt;/code&gt; client that installs from it.&lt;/p&gt;&#xA;&lt;p&gt;You need:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SOW 0.9.0 (&lt;a href=&#34;https://sow.pgsty.com/docs/start/install/&#34;&gt;Installation&lt;/a&gt;) and Python 3 for the preview server.&lt;/li&gt;&#xA;&lt;li&gt;DEB files built for your clients, here &lt;code&gt;/path/to/packages/&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;An empty &lt;code&gt;/srv/sow&lt;/code&gt; directory your user can create and write to, or another path.&lt;/li&gt;&#xA;&lt;li&gt;For step 5, a Debian or Ubuntu host with &lt;code&gt;apt&lt;/code&gt;. The preview listens on &lt;code&gt;127.0.0.1&lt;/code&gt; only,&#xA;so run the client on the same host or publish the repository first.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;td-steps td-max-width-on-larger-screens&#34;&gt;&#xA;&lt;h2 id=&#34;1-create-the-workspace&#34;&gt;Create the workspace&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;5&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir -p /srv/sow&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; /srv/sow&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow init .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow repo new pigsty&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow dist new trixie --format deb -r pigsty&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;sow init&lt;/code&gt; makes &lt;code&gt;/srv/sow&lt;/code&gt; a workspace: &lt;code&gt;sow.yml&lt;/code&gt; plus private state. &lt;code&gt;pigsty&lt;/code&gt; is the&#xA;standard repository inside it, the directory tree you will serve. &lt;code&gt;trixie&lt;/code&gt; is a Dist, one&#xA;named package set; its name becomes the &lt;code&gt;Suites&lt;/code&gt; value in the client&amp;rsquo;s source configuration.&lt;/p&gt;&#xA;&lt;h2 id=&#34;2-set-membership-policy&#34;&gt;Set membership policy&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;If you need filtering or version limits, edit the generated &lt;code&gt;sow.yml&lt;/code&gt;. This example keeps&#xA;one version per package name and architecture and excludes debug symbol packages:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-1&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;yaml&#34; data-td-line-count=&#34;11&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-1-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;schema&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;sow/v3&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;architectures&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;l&#34;&gt;x86_64, aarch64]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;repos&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pigsty&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;dists&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;trixie&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;format&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;deb&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;limit&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;m&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;exclude&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;kind&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;l&#34;&gt;dbgsym, dbg]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;{}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Then validate it:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-2&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-2-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow config check&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Configuration uses the canonical names &lt;code&gt;x86_64&lt;/code&gt; and &lt;code&gt;aarch64&lt;/code&gt; (&lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; are&#xA;accepted as aliases), and SOW writes the Debian &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; indexes from them.&#xA;Architecture-independent &lt;code&gt;all&lt;/code&gt; packages enter both views.&lt;/p&gt;&#xA;&lt;h2 id=&#34;3-add-debs&#34;&gt;Add DEBs&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-3&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;2&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-3-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow add /path/to/packages/*.deb -r pigsty -d trixie&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sow check -r pigsty&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;add&lt;/code&gt; stores each accepted package once in the pool and builds the indexes. The public&#xA;tree is:&lt;/p&gt;&#xA;&lt;pre class=&#34;td-filetree-source&#34;&gt;&lt;code class=&#34;language-filetree&#34;&gt;/srv/sow/pigsty/&#xA;├── pool/&#xA;└── dists/trixie/&#xA;    ├── Release&#xA;    └── main/&#xA;        ├── binary-amd64/&#xA;        │   ├── Packages&#xA;        │   ├── Packages.gz&#xA;        │   └── by-hash/SHA256/&#xA;        └── binary-arm64/&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;Filename&lt;/code&gt; paths in &lt;code&gt;Packages&lt;/code&gt; are relative to the repository root, so serve the&#xA;complete &lt;code&gt;pigsty/&lt;/code&gt; directory. &lt;code&gt;Release&lt;/code&gt; declares &lt;code&gt;Acquire-By-Hash: yes&lt;/code&gt;, and each index is&#xA;also stored under &lt;code&gt;by-hash/SHA256/&lt;/code&gt;. During an update, a client that already fetched the&#xA;previous &lt;code&gt;Release&lt;/code&gt; still downloads the &lt;code&gt;Packages&lt;/code&gt; file that matches it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;4-preview-over-http&#34;&gt;Preview over HTTP&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Run this in a separate terminal and leave it running:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-5&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-5-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;python3 -m http.server --bind 127.0.0.1 --directory /srv/sow/pigsty &lt;span class=&#34;m&#34;&gt;8080&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;The preview serves the repository root to the same host only. For a persistent service or&#xA;clients on other hosts, use &lt;a href=&#34;https://sow.pgsty.com/docs/tutorial/serving/&#34;&gt;Serve and publish&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;5-configure-apt&#34;&gt;Configure APT&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;On the host running the preview, save this as &lt;code&gt;/etc/apt/sources.list.d/pigsty.sources&lt;/code&gt;.&#xA;Use &lt;code&gt;arm64&lt;/code&gt; in &lt;code&gt;Architectures&lt;/code&gt; on ARM64 clients. For a remote client, publish the&#xA;repository first and use its public URL:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-6&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;ini&#34; data-td-line-count=&#34;7&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-6-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/apt/sources.list.d/pigsty.sources&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Types: deb&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;URIs: http://127.0.0.1:8080&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Suites: trixie&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Components: main&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Architectures: amd64&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Trusted: yes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;code&gt;URIs&lt;/code&gt; points at the repository root, not at &lt;code&gt;dists/&lt;/code&gt;. &lt;code&gt;Trusted: yes&lt;/code&gt; accepts this&#xA;unsigned example; &lt;a href=&#34;https://sow.pgsty.com/docs/tutorial/signing/&#34;&gt;Sign your repository&lt;/a&gt; replaces it with&#xA;&lt;code&gt;Signed-By&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Refresh and query it:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-35f1bee1-fence-7&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;2&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-35f1bee1-fence-7-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;apt-cache policy&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;The repository works when &lt;code&gt;apt update&lt;/code&gt; completes and &lt;code&gt;apt-cache policy&lt;/code&gt; lists &lt;code&gt;trixie/main&lt;/code&gt;&#xA;as a package source. After the preview, remove the test source file and stop the Python&#xA;server.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span id=&#34;6-publish-safely&#34; data-td-print-local&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;6-publish-the-repository&#34;&gt;Publish the repository&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;To give other hosts access, use &lt;a href=&#34;https://sow.pgsty.com/docs/tutorial/serving/&#34;&gt;&lt;code&gt;sow publish&lt;/code&gt;&lt;/a&gt; with a filesystem&#xA;or R2 target. It uploads packages and indexes before it updates &lt;code&gt;Release&lt;/code&gt; and its&#xA;signatures. The same tutorial covers manual delivery to isolated hosts.&lt;/p&gt;&#xA;&lt;/div&gt;</description>
      </item>
    <item>
        <title>Get Started</title>
        <link>https://sow.pgsty.com/docs/start/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/start/</guid>
        <description>&lt;p&gt;This section takes you from nothing to a repository that &lt;code&gt;dnf&lt;/code&gt; and &lt;code&gt;apt&lt;/code&gt; can install from.&#xA;SOW is a single executable with no service to run, so installation takes a minute. After&#xA;that, pick the path that matches what you have:&lt;/p&gt;&#xA;&lt;ul class=&#34;cards&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;You have a directory of packages&lt;/strong&gt; and want it installable. Follow the&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/start/quickstart/&#34;&gt;Quick start&lt;/a&gt; to make it a simple repository: one command, no&#xA;configuration, about five minutes.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;You maintain a repository&lt;/strong&gt; that changes over time, serves several distributions, or&#xA;needs signing and publication. Follow &lt;a href=&#34;https://sow.pgsty.com/docs/start/workspace/&#34;&gt;Your first standard repository&lt;/a&gt;,&#xA;then read &lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/&#34;&gt;Core concepts&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/start/install/&#34;&gt;Installation&lt;/a&gt; — Install from the Pigsty repository, a release package, an archive, or source.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/start/quickstart/&#34;&gt;Quick start&lt;/a&gt; — Index a directory of RPM and DEB files and install from it.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/start/workspace/&#34;&gt;Your first standard repository&lt;/a&gt; — Serve EL9 and Debian clients from one repository.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/&#34;&gt;Core concepts&lt;/a&gt; — Simple or standard repository, and the model behind Dists, the pool, and Generations.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
      </item>
    <item>
        <title>Build a YUM Repository</title>
        <link>https://sow.pgsty.com/docs/tutorial/yum-repo/</link>
        
        
        
        <guid>https://sow.pgsty.com/docs/tutorial/yum-repo/</guid>
        <description>&lt;p&gt;You build or collect RPMs for EL hosts and want &lt;code&gt;dnf install&lt;/code&gt; to work against your own&#xA;repository, today and after every later update. This tutorial builds a YUM&#xA;&lt;a href=&#34;https://sow.pgsty.com/docs/start/concepts/#plain-or-managed&#34;&gt;standard repository&lt;/a&gt;, which SOW maintains in a&#xA;workspace: one package set, &lt;code&gt;el9&lt;/code&gt;, with &lt;code&gt;x86_64&lt;/code&gt; and &lt;code&gt;aarch64&lt;/code&gt; indexes that share a single&#xA;package pool, a policy that keeps only the newest version and drops debug packages, and a&#xA;&lt;code&gt;dnf&lt;/code&gt; client that installs from it.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
