Skip to content

Commit

Permalink
Docs for multiple-component publishing. smira/aptly#36
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Jun 7, 2014
1 parent 0d46b21 commit 7f3d1af
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions index.html
Expand Up @@ -1719,6 +1719,8 @@ <h4>Command <code>aptly snapshot merge</code></h4>

<p>Merge merges several snapshots into one. Merge happens from left to right. By default, packages with the same
name-architecture pair are replaced during merge (package from latest snapshot on the list wins).
With <code>-latest</code>, package with latest version wins.
With <code>-no-remove</code> flag, all versions of packages are preserved during merge.
If only one snapshot is specified, merge copies <code>source</code> into <code>destination</code>.</p>

<p>Usage:</p>
Expand Down Expand Up @@ -1837,7 +1839,8 @@ <h4>Command <code>aptly publish snapshot</code></h4>

<ul>
<li> <code>-component=""</code>: component name to publish; guessed from original
repository (if any), or defaults to <code>main</code></li>
repository (if any), or defaults to <code>main</code> (for multi-component publishing,
separate components with commas)</li>
<li> <code>-distribution=""</code>: distribution name to publish; guessed from
original repository distribution</li>
<li> <code>-gpg-key=""</code>: GPG key ID to use when signing the release, if not
Expand Down Expand Up @@ -1868,6 +1871,14 @@ <h4>Command <code>aptly publish snapshot</code></h4>
snapshots it is important to specify complete architectures list (using <code>-architectures</code> flag),
as it can't be changed after publishing.</p>

<p>Multiple component repositories should be published from several snapshots, one snapshot
per component. In case of multiple component publishing, command accepts several snapshot names:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish snapshot -component=main,contrib wheezy-main wheezy-contrib</span></pre>

<p>When mirroring remote repositories in order to preserve package split by component, create
individual mirrors for each component, take snapshots and publish them as multi-component repository.</p>

<p>Example:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish snapshot back</span>
Expand Down Expand Up @@ -1985,7 +1996,8 @@ <h4>Command <code>aptly publish repo</code></h4>

<ul>
<li> <code>-component=""</code>: component name to publish; it is taken from local
repository default, otherwise it defaults to <code>main</code></li>
repository default, otherwise it defaults to <code>main</code> (for multi-component publishing,
separate components with commas)</li>
<li> <code>-distribution=""</code>: distribution name to publish; guessed from
local repository default distribution</li>
<li> <code>-gpg-key=""</code>: GPG key ID to use when signing the release, if not
Expand All @@ -2012,6 +2024,11 @@ <h4>Command <code>aptly publish repo</code></h4>
local repos it is important to specify complete architectures list (using <code>-architectures</code> flag),
as it can't be changed after publishing.</p>

<p>Multiple component repositories should be published from several local repositories, one repository
per component. In that case, command accepts several local repositories names:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish repo -component=main,contrib mysoft-main mysoft-contrib</span></pre>

<p>Example:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish repo local-repo</span>
Expand Down Expand Up @@ -2064,6 +2081,9 @@ <h4>Command <code>aptly publish update</code></h4>
<li> <code>-skip-signing=false</code>: don't sign Release files with GPG
</ul>

<p>When updating multiple-component published repository, all local repositories are updated
simultaneously.</p>

<p>Example:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish update maverick</span>
Expand All @@ -2079,7 +2099,7 @@ <h4>Command <code>aptly publish update</code></h4>

Cleaning up prefix "." component "main"...

Publish for local repo ./maverick (main) [i386, source] publishes [local-repo] has been successfully updated.
Publish for local repo ./maverick [i386, source] publishes {main: [local-repo]} has been successfully updated.
</pre>

<!-- ================ aptly publish switch ============== -->
Expand Down Expand Up @@ -2110,13 +2130,22 @@ <h4>Command <code>aptly publish switch</code></h4>
<p>Flags:</p>

<ul>
<li> <code>-component=""</code>: list of components to update (separate components with commas)</li>
<li> <code>-gpg-key=""</code>: GPG key ID to use when signing the release, if not
specified default key is used</li>
<li> <code>-keyring=""</code>: GPG keyring to use (instead of default)</li>
<li> <code>-secret-keyring=""</code>: GPG secret keyring to use (instead of default)</li>
<li> <code>-skip-signing=false</code>: don't sign Release files with GPG
</ul>

<p>When switching published snapshots for multiple component repositories any subset of snapshots
could be updated, they should be listed on command line with <code>-component</code> flag:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish switch -component=main,contrib wheezy wheezy-main wheezy-contrib</span></pre>

<p>Flag <code>-component</code> could be omitted for single-component published repositories.</p>


<p>Example:</p>

<pre><span class="greeting">$</span> <span class="command">aptly publish switch wheezy wheezy-7.4</span>
Expand All @@ -2132,7 +2161,7 @@ <h4>Command <code>aptly publish switch</code></h4>

Cleaning up prefix "." component "main"...

Publish for local repo ./wheezy (main) [i386, amd64] publishes [wheezy-7.4]: snapshot from mirror [wheezy]: http://ftp.ru.debian.org/debian/ wheezy has been successfully updated.
Publish for local repo ./wheezy [i386, amd64] publishes {main: [wheezy-7.4]: snapshot from mirror [wheezy]: http://ftp.ru.debian.org/debian/ wheezy} has been successfully updated.
</pre>

<!-- ================ aptly publish list ============== -->
Expand Down Expand Up @@ -2160,8 +2189,8 @@ <h4>Command <code>aptly publish list</code></h4>

<pre><span class="greeting">$</span> <span class="command">aptly publish list</span>
Published repositories:
* ./sq-b (main) [amd64, i386] publishes [back3]: Snapshot from mirror [backports2]: http://mirror.yandex.ru/backports.org/ squeeze-backports
* ./squeeze-backports (contrib) [amd64, i386] publishes [back3]: Snapshot from mirror [backports2]: http://mirror.yandex.ru/backports.org/ squeeze-backports
* ./sq-b [amd64, i386] publishes {main: [back3]: Snapshot from mirror [backports2]: http://mirror.yandex.ru/backports.org/ squeeze-backports}
* ./squeeze-backports [amd64, i386] publishes {contrib: [back3]: Snapshot from mirror [backports2]: http://mirror.yandex.ru/backports.org/ squeeze-backports}
</pre>

<pre><span class="greeting">$</span> <span class="command">aptly publish list -raw</span>
Expand Down

0 comments on commit 7f3d1af

Please sign in to comment.