mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Snapshot publishing [ci skip]
This commit is contained in:
+67
-8
@@ -34,9 +34,31 @@ Currently aptly is under heavy development, so please use it with care.
|
|||||||
Download
|
Download
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
aptly looks for configuration file in ``/etc/aptly.conf`` and ``~/.aptly.conf``, if no config file found,
|
||||||
|
new one is created. Also aptly needs root directory for database, package and published repository storage.
|
||||||
|
If not specified, directory defaults to ``~/.aptly``, it will be created if missing.
|
||||||
|
|
||||||
|
Configuration file is stored in JSON format::
|
||||||
|
|
||||||
|
{
|
||||||
|
"rootDir": "/var/aptly",
|
||||||
|
"downloadConcurrency": 4
|
||||||
|
}
|
||||||
|
|
||||||
|
Options:
|
||||||
|
|
||||||
|
* ``rootDir`` is root of directory storage to store datbase (``rootDir/db``), downloaded packages (``rootDir/pool``) and
|
||||||
|
published repositories (``rootDir/public``)
|
||||||
|
* ``downloadConcurrency`` is a number of parallel download threads to use when downloading packages
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
@@ -236,24 +258,61 @@ be consumed directly by apt.
|
|||||||
``aptly publish snapshot``
|
``aptly publish snapshot``
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Published repositories appear under ``rootDir/public`` directory.
|
||||||
|
|
||||||
Usage::
|
Usage::
|
||||||
|
|
||||||
$ aptly publish snapshot <name> [<prefix>]
|
$ aptly publish snapshot <name> [<prefix>]
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
|
|
||||||
* ``name``
|
* ``name`` is a snapshot name that snould be published
|
||||||
* ``prefix``
|
* ``prefix`` is an optional prefix for publishing, if not specified, repository would be published to the root of
|
||||||
|
publiс directory
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
* ``-architectures=""``: list of architectures to publish (comma-separated)
|
* ``-architectures=""``: list of architectures to publish (comma-separated); derived automatically from
|
||||||
* ``-component=""``: component name to publish
|
snapshot contents
|
||||||
* ``-distribution=""``: distribution name to publish
|
* ``-component=""``: component name to publish; guessed from original repository (if any), or defaults to
|
||||||
* ``-gpg-key=""``: GPG key ID to use when signing the release
|
main
|
||||||
|
* ``-distribution=""``: distribution name to publish; guessed from original repository distribution
|
||||||
|
* ``-gpg-key=""``: GPG key ID to use when signing the release, if not specified default key is used
|
||||||
|
|
||||||
Configuration
|
Example::
|
||||||
-------------
|
|
||||||
|
$ aptly publish snapshot back
|
||||||
|
Signing file '/var/aptly/public/dists/squeeze-backports/Release' with gpg, please enter your passphrase when prompted:
|
||||||
|
|
||||||
|
<<gpg asks for passphrase>>
|
||||||
|
|
||||||
|
Clearsigning file '/var/aptly/public/dists/squeeze-backports/Release' with gpg, please enter your passphrase when prompted:
|
||||||
|
|
||||||
|
<<gpg asks for passphrase>>
|
||||||
|
|
||||||
|
Snapshot back has been successfully published.
|
||||||
|
Please setup your webserver to serve directory '/var/aptly/public' with autoindexing.
|
||||||
|
Now you can add following line to apt sources:
|
||||||
|
deb http://your-server/ squeeze-backports main
|
||||||
|
Don't forget to add your GPG key to apt with apt-key.
|
||||||
|
|
||||||
|
Directory structure for published repositories::
|
||||||
|
|
||||||
|
public/ - root of published tree (root for webserver)
|
||||||
|
dists/
|
||||||
|
squeeze/ - distribution name
|
||||||
|
Release - raw file
|
||||||
|
InRelease - clearsigned file
|
||||||
|
Release.gpg - signature for Release file
|
||||||
|
binary-i386/
|
||||||
|
Packages - list of metadata for packages
|
||||||
|
Packages.gz
|
||||||
|
Packages.bz2
|
||||||
|
pool/
|
||||||
|
main/ - component name
|
||||||
|
m/
|
||||||
|
mars-invaders/
|
||||||
|
mars-invaders_1.0.3_i386.deb - package (hard link to package from main pool)
|
||||||
|
|
||||||
GPG Keys
|
GPG Keys
|
||||||
--------
|
--------
|
||||||
|
|||||||
Reference in New Issue
Block a user