Sun Update Connection - Enterprise 1.0 User's Guide

Adding Solaris Software with a Script

In this procedure, you will use a script from the Sun Update Connection – Enterprise CLI application to upload Solaris software. Use this procedure if you are unfamiliar with Solaris commands and having trouble unpacking the PKGs or tarring the directories.

Before You Begin

Install the latest Sun Update Connection – Enterprise CLI.

The script is /usr/local/uce/cli/bin/pkg_loader.sh

ProcedureTo Upload Solaris Software With pkg_loader

  1. Change to the following directory by typing:


    cd /usr/local/uce/cli/bin/
    
  2. Type the following command:


    Note –

    -p is required and its value is the path of the packages to be uploaded.

    -r is optional and provides a recursive search through the given path.

    -d is optional and provides debugging information.



    ./pkg_loader.sh -p path [ -r ] [ -d ]
  3. Type a Sun Update Connection – Enterprise user name with full permissions.

  4. Type a password for the Sun Update Connection – Enterprise user.

  5. For the channel, type the number of the distribution-architecture, according to the displayed list of Available Channels, to which the packages you want to upload belong.

  6. At the prompt Would you like all found components to be added under specific category?, type y to put the packages in a user-defined category, and then at the Category name prompt, type the name of the category.

    If the category does not yet exist in the Sun Update Connection – Enterprise components list, it will be created. If you type n, the packages are added under a default category in the components list.

    pkg_loader.sh will tar the Solaris package directories. Then it uploads the tarballs to the knowledge base. Sun Update Connection – Enterprise recognizes them as Solaris packages and enables you to deploy them as PKGs.