mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-28 20:58:14 +00:00
Update integrated help.
This commit is contained in:
@@ -45,7 +45,14 @@ func RootCommand() *commander.Command {
|
|||||||
aptly is a tool to create partial and full mirrors of remote
|
aptly is a tool to create partial and full mirrors of remote
|
||||||
repositories, manage local repositories, filter them, merge,
|
repositories, manage local repositories, filter them, merge,
|
||||||
upgrade individual packages, take snapshots and publish them
|
upgrade individual packages, take snapshots and publish them
|
||||||
back as Debian repositories.`,
|
back as Debian repositories.
|
||||||
|
|
||||||
|
aptly goal is to establish repeatiblity and controlled changes
|
||||||
|
in package environment. aptly allows to fix set of packages in
|
||||||
|
repository, so that package installation and upgrade becomes
|
||||||
|
deterministic. At the same time aptly allows to perform controlled,
|
||||||
|
fine-grained changes in repository contents to transition your
|
||||||
|
package environment to new version.`,
|
||||||
Flag: *flag.NewFlagSet("aptly", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly", flag.ExitOnError),
|
||||||
Subcommands: []*commander.Command{
|
Subcommands: []*commander.Command{
|
||||||
makeCmdDb(),
|
makeCmdDb(),
|
||||||
|
|||||||
18
cmd/db.go
18
cmd/db.go
@@ -5,24 +5,6 @@ import (
|
|||||||
"github.com/gonuts/flag"
|
"github.com/gonuts/flag"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeCmdDbCleanup() *commander.Command {
|
|
||||||
cmd := &commander.Command{
|
|
||||||
Run: aptlyDbCleanup,
|
|
||||||
UsageLine: "cleanup",
|
|
||||||
Short: "remove unused entries in DB and unreferenced files in the pool",
|
|
||||||
Long: `
|
|
||||||
Database cleanup removes information about unreferenced packages and removes
|
|
||||||
files in the package pool that aren't used by packages anymore
|
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly db cleanup
|
|
||||||
`,
|
|
||||||
Flag: *flag.NewFlagSet("aptly-db-cleanup", flag.ExitOnError),
|
|
||||||
}
|
|
||||||
|
|
||||||
return cmd
|
|
||||||
}
|
|
||||||
|
|
||||||
func makeCmdDb() *commander.Command {
|
func makeCmdDb() *commander.Command {
|
||||||
return &commander.Command{
|
return &commander.Command{
|
||||||
UsageLine: "db",
|
UsageLine: "db",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gonuts/commander"
|
"github.com/gonuts/commander"
|
||||||
|
"github.com/gonuts/flag"
|
||||||
"github.com/smira/aptly/debian"
|
"github.com/smira/aptly/debian"
|
||||||
"github.com/smira/aptly/utils"
|
"github.com/smira/aptly/utils"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -144,3 +145,22 @@ func aptlyDbCleanup(cmd *commander.Command, args []string) error {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func makeCmdDbCleanup() *commander.Command {
|
||||||
|
cmd := &commander.Command{
|
||||||
|
Run: aptlyDbCleanup,
|
||||||
|
UsageLine: "cleanup",
|
||||||
|
Short: "cleanup DB and package pool",
|
||||||
|
Long: `
|
||||||
|
Database cleanup removes information about unreferenced packages and removes
|
||||||
|
files in the package pool that aren't used by packages anymore
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$ aptly db cleanup
|
||||||
|
`,
|
||||||
|
Flag: *flag.NewFlagSet("aptly-db-cleanup", flag.ExitOnError),
|
||||||
|
}
|
||||||
|
|
||||||
|
return cmd
|
||||||
|
}
|
||||||
|
|||||||
10
cmd/graph.go
10
cmd/graph.go
@@ -194,12 +194,14 @@ func makeCmdGraph() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyGraph,
|
Run: aptlyGraph,
|
||||||
UsageLine: "graph",
|
UsageLine: "graph",
|
||||||
Short: "display graph of dependencies between aptly objects (requires graphviz)",
|
Short: "render graph of relationships",
|
||||||
Long: `
|
Long: `
|
||||||
Command graph displays relationship between mirrors, snapshots and published repositories using
|
Command graph displays relationship between mirrors, local repositories,
|
||||||
graphviz package to render graph as image.
|
snapshots and published repositories using graphviz package to render
|
||||||
|
graph as image.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly graph
|
$ aptly graph
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-graph", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-graph", flag.ExitOnError),
|
||||||
|
|||||||
@@ -63,21 +63,24 @@ func makeCmdMirrorCreate() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyMirrorCreate,
|
Run: aptlyMirrorCreate,
|
||||||
UsageLine: "create <name> <archive url> <distribution> [<component1> ...]",
|
UsageLine: "create <name> <archive url> <distribution> [<component1> ...]",
|
||||||
Short: "create new mirror of Debian repository",
|
Short: "create new mirror",
|
||||||
Long: `
|
Long: `
|
||||||
Create records information about new mirror and fetches Release file (it doesn't download packages).
|
Creates mirror <name> of remote repository, aptly supports both regular and flat Debian repositories exported
|
||||||
|
via HTTP. aptly would try download Release file from remote repository and verify its signature.
|
||||||
|
|
||||||
PPA url could specified in short format when running on Debian/Ubuntu:
|
PPA urls could specified in short format:
|
||||||
$ aptly mirror create some_ppa ppa:user/project
|
|
||||||
|
$ aptly mirror create <name> ppa:<user>/<project>
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-mirror-create", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-mirror-create", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flag.Bool("ignore-signatures", false, "disable verification of Release file signatures")
|
cmd.Flag.Bool("ignore-signatures", false, "disable verification of Release file signatures")
|
||||||
cmd.Flag.Bool("with-sources", false, "download source packages")
|
cmd.Flag.Bool("with-sources", false, "download source packages in addition to binary packages")
|
||||||
cmd.Flag.Var(&keyRings, "keyring", "gpg keyring to use when verifying Release file (could be specified multiple times)")
|
cmd.Flag.Var(&keyRings, "keyring", "gpg keyring to use when verifying Release file (could be specified multiple times)")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|||||||
@@ -51,12 +51,14 @@ func makeCmdMirrorDrop() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyMirrorDrop,
|
Run: aptlyMirrorDrop,
|
||||||
UsageLine: "drop <name>",
|
UsageLine: "drop <name>",
|
||||||
Short: "delete remote repository mirror",
|
Short: "delete mirror",
|
||||||
Long: `
|
Long: `
|
||||||
Drop deletes information about remote repository mirror. Package data is not deleted
|
Drop deletes information about remote repository mirror <name>. Package data is not deleted
|
||||||
(it could be still used by other mirrors or snapshots).
|
(it could be still used by other mirrors or snapshots). If mirror is used as source
|
||||||
|
to create a snapshot, aptly would refuse to delete such mirror, use flag -force to override.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly mirror drop wheezy-main
|
$ aptly mirror drop wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-mirror-drop", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-mirror-drop", flag.ExitOnError),
|
||||||
|
|||||||
@@ -43,16 +43,16 @@ func makeCmdMirrorList() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyMirrorList,
|
Run: aptlyMirrorList,
|
||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "list mirrors of remote repositories",
|
Short: "list mirrors",
|
||||||
Long: `
|
Long: `
|
||||||
List shows full list of remote repositories.
|
List shows full list of remote repository mirrors.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly mirror list
|
$ aptly mirror list
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-mirror-list", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-mirror-list", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
cmd.Flag.Bool("v", false, "enable verbose output")
|
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,17 +67,18 @@ func makeCmdMirrorShow() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyMirrorShow,
|
Run: aptlyMirrorShow,
|
||||||
UsageLine: "show <name>",
|
UsageLine: "show <name>",
|
||||||
Short: "show details about remote repository mirror",
|
Short: "show details about mirror",
|
||||||
Long: `
|
Long: `
|
||||||
Show shows full information about mirror.
|
Shows detailed information about mirror.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly mirror show wheezy-main
|
$ aptly mirror show wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flag.Bool("with-packages", false, "show list of packages")
|
cmd.Flag.Bool("with-packages", false, "show detailed list of packages and versions stored in the mirror")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,11 +59,14 @@ func makeCmdMirrorUpdate() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyMirrorUpdate,
|
Run: aptlyMirrorUpdate,
|
||||||
UsageLine: "update <name>",
|
UsageLine: "update <name>",
|
||||||
Short: "update packages from remote mirror",
|
Short: "update mirror",
|
||||||
Long: `
|
Long: `
|
||||||
Update downloads list of packages and package files.
|
Updates remote mirror (downloads package files and meta information). When mirror is created,
|
||||||
|
this command should be run for the first time to fetch mirror contents. This command could be
|
||||||
|
run many times to get updated repository contents. If interrupted, command could be restarted safely.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly mirror update wheezy-main
|
$ aptly mirror update wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-mirror-update", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-mirror-update", flag.ExitOnError),
|
||||||
|
|||||||
@@ -37,11 +37,13 @@ func makeCmdPublishDrop() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyPublishDrop,
|
Run: aptlyPublishDrop,
|
||||||
UsageLine: "drop <distribution> [<prefix>]",
|
UsageLine: "drop <distribution> [<prefix>]",
|
||||||
Short: "removes files of published repository",
|
Short: "remove published repository",
|
||||||
Long: `
|
Long: `
|
||||||
Command removes whatever has been published under specified prefix and distribution name.
|
Command removes whatever has been published under specified <prefix> and
|
||||||
|
<distribution> name.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly publish drop wheezy
|
$ aptly publish drop wheezy
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-publish-drop", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-publish-drop", flag.ExitOnError),
|
||||||
|
|||||||
@@ -54,11 +54,12 @@ func makeCmdPublishList() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyPublishList,
|
Run: aptlyPublishList,
|
||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "displays list of published repositories",
|
Short: "list of published repositories",
|
||||||
Long: `
|
Long: `
|
||||||
Display command displays list of currently published snapshots with information about published root.
|
Display list of currently published snapshots.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly publish list
|
$ aptly publish list
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-publish-list", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-publish-list", flag.ExitOnError),
|
||||||
|
|||||||
@@ -114,11 +114,14 @@ func makeCmdPublishSnapshot() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyPublishSnapshot,
|
Run: aptlyPublishSnapshot,
|
||||||
UsageLine: "snapshot <name> [<prefix>]",
|
UsageLine: "snapshot <name> [<prefix>]",
|
||||||
Short: "makes Debian repository out of snapshot",
|
Short: "publish snapshot",
|
||||||
Long: `
|
Long: `
|
||||||
Command publish oublishes snapshot as Debian repository ready to be used by apt tools.
|
Command publish publishes snapshot as Debian repository ready to be consumed
|
||||||
|
by apt tools. Published repostiories appear under rootDir/public directory.
|
||||||
|
Valid GPG key is required for publishing.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly publish snapshot wheezy-main
|
$ aptly publish snapshot wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-publish-snapshot", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-publish-snapshot", flag.ExitOnError),
|
||||||
|
|||||||
@@ -187,12 +187,14 @@ func makeCmdRepoAdd() *commander.Command {
|
|||||||
UsageLine: "add <name> <package file.deb>|<directory> ...",
|
UsageLine: "add <name> <package file.deb>|<directory> ...",
|
||||||
Short: "add packages to local repository",
|
Short: "add packages to local repository",
|
||||||
Long: `
|
Long: `
|
||||||
Command adds packages to local repository. List of files or directories to be
|
Command adds packages to local repository from .deb (binary packages) and .dsc (source packages) files.
|
||||||
scanned could be specified. If importing from directory, all files matching *.deb or *.dsc
|
When importing from directory aptly would do recursive scan looking for all files matching *.deb or *.dsc
|
||||||
patterns would be scanned and added to the repository. For source packages, all required
|
patterns. Every file discovered would be analyzed to extract metadata, package would be created and added
|
||||||
files are added as well automatically.
|
to database. Files would be imported to internal package pool. For source packages, all required files are
|
||||||
|
added as well automatically. Extra files for source package should be in the same directory as *.dsc file.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly repo add testing myapp-0.1.2.deb incoming/
|
$ aptly repo add testing myapp-0.1.2.deb incoming/
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-add", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-add", flag.ExitOnError),
|
||||||
|
|||||||
@@ -9,12 +9,13 @@ func makeCmdRepoCopy() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoMoveCopyImport,
|
Run: aptlyRepoMoveCopyImport,
|
||||||
UsageLine: "copy <src-name> <dst-name> <package-spec> ...",
|
UsageLine: "copy <src-name> <dst-name> <package-spec> ...",
|
||||||
Short: "copy packages between source repos",
|
Short: "copy packages between local repositories",
|
||||||
Long: `
|
Long: `
|
||||||
Command copy copies packages matching <package-spec> from local repo
|
Command copy copies packages matching <package-spec> from local repo
|
||||||
<src-name> to local repo <dst-name>.
|
<src-name> to local repo <dst-name>.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly repo copy testing stable 'myapp (=0.1.12)'
|
$ aptly repo copy testing stable 'myapp (=0.1.12)'
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-copy", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-copy", flag.ExitOnError),
|
||||||
|
|||||||
@@ -31,17 +31,20 @@ func makeCmdRepoCreate() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoCreate,
|
Run: aptlyRepoCreate,
|
||||||
UsageLine: "create <name>",
|
UsageLine: "create <name>",
|
||||||
Short: "create new local package repository",
|
Short: "create local repository",
|
||||||
Long: `
|
Long: `
|
||||||
Creates new empty local package repository.
|
Create local package repository. Repository would be empty when
|
||||||
|
created, packages could be added from files, copied or moved from
|
||||||
|
another local repository or imported from the mirror.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly repo create testing
|
$ aptly repo create testing
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-create", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-create", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flag.String("comment", "", "comment for the repository")
|
cmd.Flag.String("comment", "", "any text that would be used to described local repository")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,12 +51,13 @@ func makeCmdRepoDrop() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoDrop,
|
Run: aptlyRepoDrop,
|
||||||
UsageLine: "drop <name>",
|
UsageLine: "drop <name>",
|
||||||
Short: "delete local repo",
|
Short: "delete local repository",
|
||||||
Long: `
|
Long: `
|
||||||
Drop deletes information about local repo. Package data is not deleted
|
Drop deletes information about local repo. Package data is not deleted
|
||||||
(it could be still used by other mirrors or snapshots).
|
(it could be still used by other mirrors or snapshots).
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly repo drop local-repo
|
$ aptly repo drop local-repo
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-drop", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-drop", flag.ExitOnError),
|
||||||
|
|||||||
@@ -9,12 +9,13 @@ func makeCmdRepoImport() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoMoveCopyImport,
|
Run: aptlyRepoMoveCopyImport,
|
||||||
UsageLine: "import <src-mirror> <dst-repo> <package-spec> ...",
|
UsageLine: "import <src-mirror> <dst-repo> <package-spec> ...",
|
||||||
Short: "import package from mirror and put it into local repo",
|
Short: "import packages from mirror to local repository",
|
||||||
Long: `
|
Long: `
|
||||||
Command import looks up packages matching <package-spec> in mirror <src-mirror>
|
Command import looks up packages matching <package-spec> in mirror <src-mirror>
|
||||||
and copies them to local repo <dst-repo>.
|
and copies them to local repo <dst-repo>.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly repo import wheezy-main testing nginx
|
$ aptly repo import wheezy-main testing nginx
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-import", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-import", flag.ExitOnError),
|
||||||
|
|||||||
@@ -48,11 +48,12 @@ func makeCmdRepoList() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoList,
|
Run: aptlyRepoList,
|
||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "list local package repositories",
|
Short: "list local repositories",
|
||||||
Long: `
|
Long: `
|
||||||
List shows full list of local package repositories.
|
List shows full list of local package repositories.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly repo list
|
$ aptly repo list
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-list", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-list", flag.ExitOnError),
|
||||||
|
|||||||
@@ -166,12 +166,13 @@ func makeCmdRepoMove() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyRepoMoveCopyImport,
|
Run: aptlyRepoMoveCopyImport,
|
||||||
UsageLine: "move <src-name> <dst-name> <package-spec> ...",
|
UsageLine: "move <src-name> <dst-name> <package-spec> ...",
|
||||||
Short: "move packages between source repos",
|
Short: "move packages between local repositories",
|
||||||
Long: `
|
Long: `
|
||||||
Command move moves packages matching <package-spec> from local repo
|
Command move moves packages matching <package-spec> from local repo
|
||||||
<src-name> to local repo <dst-name>.
|
<src-name> to local repo <dst-name>.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly repo move testing stable 'myapp (=0.1.12)'
|
$ aptly repo move testing stable 'myapp (=0.1.12)'
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-move", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-move", flag.ExitOnError),
|
||||||
|
|||||||
@@ -67,11 +67,13 @@ func makeCmdRepoRemove() *commander.Command {
|
|||||||
UsageLine: "remove <name> <package-spec> ...",
|
UsageLine: "remove <name> <package-spec> ...",
|
||||||
Short: "remove packages from local repository",
|
Short: "remove packages from local repository",
|
||||||
Long: `
|
Long: `
|
||||||
Commands removes packages matching specs from local repository. If removed
|
Commands removes packages matching <package-spec> from local repository
|
||||||
packages are not referenced by other repos or snapshots, they can be removed
|
<name>. If removed packages are not referenced by other repos or
|
||||||
completely (including files) by running 'aptly db cleanup'.
|
snapshots, they can be removed completely (including files) by running
|
||||||
|
'aptly db cleanup'.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex:
|
|
||||||
$ aptly repo remove testing 'myapp (=0.1.12)'
|
$ aptly repo remove testing 'myapp (=0.1.12)'
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-repo-add", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-repo-add", flag.ExitOnError),
|
||||||
|
|||||||
@@ -95,12 +95,13 @@ func makeCmdServe() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlyServe,
|
Run: aptlyServe,
|
||||||
UsageLine: "serve",
|
UsageLine: "serve",
|
||||||
Short: "start embedded HTTP server to serve published repositories",
|
Short: "HTTP serve published repositories",
|
||||||
Long: `
|
Long: `
|
||||||
Command serve starts embedded HTTP server (not suitable for real production usage) to serve
|
Command serve starts embedded HTTP server (not suitable for real production usage) to serve
|
||||||
contents of public/ subdirectory of aptly's root that contains published repositories.
|
contents of public/ subdirectory of aptly's root that contains published repositories.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly serve -listen=:8080
|
$ aptly serve -listen=:8080
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-serve", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-serve", flag.ExitOnError),
|
||||||
|
|||||||
@@ -78,19 +78,23 @@ func aptlySnapshotCreate(cmd *commander.Command, args []string) error {
|
|||||||
func makeCmdSnapshotCreate() *commander.Command {
|
func makeCmdSnapshotCreate() *commander.Command {
|
||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotCreate,
|
Run: aptlySnapshotCreate,
|
||||||
UsageLine: "create <name> from mirror <mirror-name> | from repo <repo-name> | create <name> empty",
|
UsageLine: "create <name> from mirror <mirror-name> | from repo <repo-name> | empty",
|
||||||
Short: "creates immutable snapshot of mirror (local repo) contents",
|
Short: "creates snapshot of mirror (local repository) contents",
|
||||||
Long: `
|
Long: `
|
||||||
Command create .. from mirror makes persistent immutable snapshot of remote repository mirror. Snapshot could be
|
Command create <name> from mirror makes persistent immutable snapshot of remote
|
||||||
published or further modified using merge, pull and other aptly features.
|
repository mirror. Snapshot could be published or further modified using
|
||||||
|
merge, pull and other aptly features.
|
||||||
|
|
||||||
Command create .. from repo makes persistent immutable snapshot of local repository. Snapshot could be processed
|
Command create <name> from repo makes persistent immutable snapshot of local
|
||||||
as mirror snapshots, and mixed with snapshots of remote mirrors.
|
repository. Snapshot could be processed as mirror snapshots, and mixed with
|
||||||
|
snapshots of remote mirrors.
|
||||||
|
|
||||||
Command create .. empty creates empty snapshot that could be used as a basis for snapshot pull operations, for example.
|
Command create <name> empty creates empty snapshot that could be used as a
|
||||||
As snapshots are immutable, creating one empty snapshot should be enough.
|
basis for snapshot pull operations, for example. As snapshots are immutable,
|
||||||
|
creating one empty snapshot should be enough.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly snapshot create wheezy-main-today from mirror wheezy-main
|
$ aptly snapshot create wheezy-main-today from mirror wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-create", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-create", flag.ExitOnError),
|
||||||
|
|||||||
@@ -95,11 +95,15 @@ func makeCmdSnapshotDiff() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotDiff,
|
Run: aptlySnapshotDiff,
|
||||||
UsageLine: "diff <name-a> <name-b>",
|
UsageLine: "diff <name-a> <name-b>",
|
||||||
Short: "calculates difference in packages between two snapshots",
|
Short: "difference between two snapshots",
|
||||||
Long: `
|
Long: `
|
||||||
Command diff shows list of missing and new packages, difference in package versions between two snapshots.
|
Displays difference in packages between two snapshots. Snapshot is a list
|
||||||
|
of packages, so difference between snapshots is a difference between package
|
||||||
|
lists. Package could be either completely missing in one snapshot, or package
|
||||||
|
is present in both snapshots with different versions.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly snapshot diff -only-matching wheezy-main wheezy-backports
|
$ aptly snapshot diff -only-matching wheezy-main wheezy-backports
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-diff", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-diff", flag.ExitOnError),
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ func makeCmdSnapshotDrop() *commander.Command {
|
|||||||
Drop removes information about snapshot. If snapshot is published,
|
Drop removes information about snapshot. If snapshot is published,
|
||||||
it can't be dropped.
|
it can't be dropped.
|
||||||
|
|
||||||
ex.
|
Example:
|
||||||
|
|
||||||
$ aptly snapshot drop wheezy-main
|
$ aptly snapshot drop wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-drop", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-drop", flag.ExitOnError),
|
||||||
|
|||||||
@@ -46,11 +46,12 @@ func makeCmdSnapshotList() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotList,
|
Run: aptlySnapshotList,
|
||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "lists snapshots",
|
Short: "list snapshots",
|
||||||
Long: `
|
Long: `
|
||||||
Command list shows full list of snapshots created.
|
Command list shows full list of snapshots created.
|
||||||
|
|
||||||
ex:
|
Example:
|
||||||
|
|
||||||
$ aptly snapshot list
|
$ aptly snapshot list
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-list", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-list", flag.ExitOnError),
|
||||||
|
|||||||
@@ -60,13 +60,16 @@ func makeCmdSnapshotMerge() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotMerge,
|
Run: aptlySnapshotMerge,
|
||||||
UsageLine: "merge <destination> <source> [<source>...]",
|
UsageLine: "merge <destination> <source> [<source>...]",
|
||||||
Short: "merges snapshots into one, replacing matching packages",
|
Short: "merges snapshots",
|
||||||
Long: `
|
Long: `
|
||||||
Merge merges several snapshots into one. Merge happens from left to right. Packages with the same
|
Merge merges several <source> snapshots into one <destination> snapshot.
|
||||||
name-architecture pair are replaced during merge (package from latest snapshot on the list wins).
|
Merge happens from left to right. Packages with the same name-architecture
|
||||||
If run with only one source snapshot, merge copies source into destination.
|
pair are replaced during merge (package from latest snapshot on the list
|
||||||
|
wins). If run with only one source snapshot, merge copies <source> into
|
||||||
|
<destination>.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly snapshot merge wheezy-w-backports wheezy-main wheezy-backports
|
$ aptly snapshot merge wheezy-w-backports wheezy-main wheezy-backports
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-merge", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-merge", flag.ExitOnError),
|
||||||
|
|||||||
@@ -170,14 +170,16 @@ func makeCmdSnapshotPull() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotPull,
|
Run: aptlySnapshotPull,
|
||||||
UsageLine: "pull <name> <source> <destination> <package-name> ...",
|
UsageLine: "pull <name> <source> <destination> <package-name> ...",
|
||||||
Short: "performs partial upgrades (pulls new packages) from another snapshot",
|
Short: "pull packages from another snapshot",
|
||||||
Long: `
|
Long: `
|
||||||
Command pull pulls new packages along with its dependencies in <name> snapshot
|
Command pull pulls new packages along with its dependencies to snapshot <name>
|
||||||
from <source> snapshot. Also can upgrade package version from one snapshot into
|
from snapshot <source>. Pull can upgrade package version in <name> with
|
||||||
another, once again along with dependencies. New snapshot <destination> is created as result of this
|
versions from <source> following dependencies. New snapshot <destination>
|
||||||
process. Packages could be specified simply as 'package-name' or as dependency 'package-name (>= version)'.
|
is created as result of this process. Packages could be specified simply
|
||||||
|
as 'package-name' or as dependency 'package-name (>= version)'.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly snapshot pull wheezy-main wheezy-backports wheezy-new-xorg xorg-server-server
|
$ aptly snapshot pull wheezy-main wheezy-backports wheezy-new-xorg xorg-server-server
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-pull", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-pull", flag.ExitOnError),
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ func makeCmdSnapshotShow() *commander.Command {
|
|||||||
Long: `
|
Long: `
|
||||||
Command show displays full information about snapshot.
|
Command show displays full information about snapshot.
|
||||||
|
|
||||||
ex.
|
Example:
|
||||||
|
|
||||||
$ aptly snapshot show wheezy-main
|
$ aptly snapshot show wheezy-main
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-show", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-show", flag.ExitOnError),
|
||||||
|
|||||||
@@ -102,12 +102,14 @@ func makeCmdSnapshotVerify() *commander.Command {
|
|||||||
cmd := &commander.Command{
|
cmd := &commander.Command{
|
||||||
Run: aptlySnapshotVerify,
|
Run: aptlySnapshotVerify,
|
||||||
UsageLine: "verify <name> [<source> ...]",
|
UsageLine: "verify <name> [<source> ...]",
|
||||||
Short: "verifies that dependencies are satisfied in snapshot",
|
Short: "verify dependencies in snapshot",
|
||||||
Long: `
|
Long: `
|
||||||
Verify does depenency resolution in snapshot, possibly using additional snapshots as dependency sources.
|
Verify does depenency resolution in snapshot <name>, possibly using additional
|
||||||
All unsatisfied dependencies are returned.
|
snapshots <source> as dependency sources. All unsatisfied dependencies are
|
||||||
|
printed.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
ex.
|
|
||||||
$ aptly snapshot verify wheezy-main wheezy-contrib wheezy-non-free
|
$ aptly snapshot verify wheezy-main wheezy-contrib wheezy-non-free
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-verify", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-verify", flag.ExitOnError),
|
||||||
|
|||||||
Reference in New Issue
Block a user