Download assets using the installUtility command


Overview

After installing Liberty, we can download assets to the local file system using the installUtility command. Assets can be downloaded to a directory-based repository, either uncompressed or compressed in an archive file.

By default, the installUtility command is configured to download assets only from the public Liberty Repository. To download assets from a local directory-based repository or an instance of the Liberty Asset Repository Service, configure these repositories in the repositories.properties file.

Rather than downloading individual assets, we can download a wlp-featureRepo-<version>.zip archive file from IBM Fix Central. The .zip archive contains a directory-based repository of all features and addons for the particular fix pack of Liberty. Assets not included in the .zip file must be downloaded using the installUtility command.

We can either...

  • Extract the archive file to populate a local directory-based repository.
  • Use the archive file to populate an instance of the Liberty Asset Repository Service.
  • Install assets directly from the compressed archive.


Steps

  1. Find assets applicable to our configuration. For example...

      installUtility find adminCenter

  2. To find a specific type of asset, use the --type=[feature|sample|opensource|addon|all*] option. For example...

      installUtility find adminCenter --type=feature

  3. Download assets to a location. For example:

      installUtility download adminCenter-1.0 --location=/tmp/download

    We can download multiple assets at once by separating each asset shortName with a space. For example...

      installUtility download jca-1.7 adminCenter-1.0 --location=/tmp/download

After downloading assets to the local file system, we can add a local directory to the repository configuration so we can install assets from the directory.


See also


Parent topic: Install assets using the installUtility command