Bundle: repositorycommands
Version 1.1.1

Repository Commands

The Knopflerfish repository manager console bundle

Description

The Repository commands bundle includes a set of commands through which the Knopflerfish Repository Manager can be controlled. This includes bundle search and install, repository management (add, remove, ordering, enable and disable).

Repository Command Group

Available repository commands:
  add [-help] [-r #rank#] <url> - Add a XML based repository.
  bundle [-help] [-l] [<symbolicname> [<versionRange>]] - List bundle resources.
  disable [-help] <repository> ... - Disable selected repository.
  enable [-help] <repository> ... - Enable selected repository.
  install [-help] [-s] <symbolicname> [<versionRange>] - Install bundle resource.
  list [-help] [-l] [<repository>] - List repositories.
  rank [-help] <rank> <repository> ... - Change repository ranking.
  show [-help] [-t] <namespace> [<filter>] - Show all capabilities and requirements for selected resources.

add

Add a XML based repository.

add [-help] [-r #rank#] <url>

Parameters:

-help
Display command help text.
-r #rank#
Set rank explicitly.
<url>
URL for repository file.

bundle

List bundle resources. List all bundles that matches <symbolicname> and <versionRange>. Mark with a '*' in the first column if a bundle is installed.

bundle [-help] [-l] [<symbolicname> [<versionRange>]]

Parameters:

-help
Display command help text.
-l
Verbose output.
<symbolicname>
Bundle symbolic name to match.
<versionRange>
Optional bundle version range.

disable

Disable selected repository. Disables a repository so that it won't be used when searching for resources.

disable [-help] <repository> ...

Parameters:

-help
Display command help text.
<repository>
Wildcard name or id of repository.

enable

Enable selected repository. Enables a repository so that it will be used when searching for resources.

enable [-help] <repository> ...

Parameters:

-help
Display command help text.
<repository>
Wildcard name or id of repository.

install

Install bundle resource. Installs first bundle resource that matches <symbolicname> and optional <versionRange>.

install [-help] [-s] [<symbolicname< [<versionRange<]]

Parameters:

-help
Display command help text.
-s
Persistently start bundle according to activation policy.
<symbolicname>
Bundle symbolic name to match.
<versionRange>
Optional bundle version range.

list

List repositories. Mark with a '*' in the first column if a repository is enabled.

list [-help] [-l] <repository>

Parameters:

-help
Display command help text.
-l
Verbose output.
<repository>
Wildcard name or id of repository.

rank

Change repository ranking. The rank is used to can change the order in which repositories are searched. Repository with highest ranking is searched first.

rank [-help] <rank> <repository> ...

Parameters:

-help
Display command help text.
<rank>
New rank of repository, must be an integer.
<repository>
Wildcard name or id of repository.

show

Show all capabilities and requirements for selected resources.

show [-help] [-t] <namespace< [<filter<]

Parameters:

-help
Display command help text.
-t
Terse output, only show namespace attribute.
<namespace>
Which namespace to search.
<filter>
OSGi filter expression for selecting resources.

Examples

List all repository available.

repository> list
E  Id Rank  Description
------------------------
*  15    0  XML repository from URL: file:jars/index.xml

List bundles with a symbolic name starting with "org.knopflerfish.bundle.repository" that are available from the repository.

repository> b org.knopflerfish.bundle.repository*
I Bundle resource
- --------------------
  org.knopflerfish.bundle.repository.index, version=1.0.0
* org.knopflerfish.bundle.repository-API, version=1.0.0
* org.knopflerfish.bundle.repository_desktop, version=1.0.0
* org.knopflerfish.bundle.repository.xml, version=1.0.0
  org.knopflerfish.bundle.repository.xml-API, version=1.0.0
* org.knopflerfish.bundle.repositorycommands-IMPL, version=1.0.0
* org.knopflerfish.bundle.repositorymanager, version=1.0.0
  org.knopflerfish.bundle.repositorymanager-API, version=1.0.0

See Also

Console

Bundle Jar docs

repositorycommands-1.1.1

Exported Packages

No exported packages.