Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Upgrade to Oracle GlassFish Server by Using the pkg Command

Before You Begin

Ensure that GlassFish Server Open Source Edition 3.0.1 is installed on your machine.

  1. To ensure that the pkg command can locate the application image, change to the base installation directory for GlassFish Server.


    cd as-install
    
    as-install

    The base installation directory for GlassFish Server.

  2. Remove the following publishers from the list of publishers for the image:

    • dev.glassfish.org

    • stable.glassfish.org

    • release.javaeesdk.sun.com


    pkg unset-publisher dev.glassfish.org stable.glassfish.org \
    release.javaeesdk.sun.com
    
  3. Add repositories for Oracle GlassFish Server to the application image.

    The properties to specify for each repository are listed in the following table.

    Publisher Name 

    Origin Uniform Resource Indentifier (URI)  

    release.glassfish.sun.com

    http://pkg.sun.com/glassfish/v3/release/

    dev.glassfish.sun.com

    http://pkg.sun.com/glassfish/v3/dev/

    The publisher release.glassfish.sun.com must be the preferred publisher.

    For more information about these repositories, see Oracle GlassFish Server Repositories.

    1. Add the repository whose publisher is release.glassfish.sun.com, which must be the preferred publisher.


      pkg set-publisher -P -O http://pkg.sun.com/glassfish/v3/release/ \
      release.glassfish.sun.com
      
    2. Add the repository whose publisher is dev.glassfish.sun.com.


      pkg set-publisher -O http://pkg.sun.com/glassfish/v3/dev/ \
      dev.glassfish.sun.com
      
  4. Install the add-on component for upgrading the distribution of GlassFish Server Open Source Edition that is installed:

    • If the Web Profile distribution is installed, install the Oracle GlassFish Server Web Profile add-on component.


      pkg install glassfish-enterprise-web-profile
      
    • If the Full Platform distribution is installed, install the Oracle GlassFish Server Full Platform add-on component.


      pkg install glassfish-enterprise-full-profile
      
  5. To apply your changes, restart GlassFish Server.

    See To Restart a Domain.

See Also

For the full syntax and options of the pkg command, see the pkg(1) man page. This man page is installed only after the pkg utilities have been fully installed.

To view this man page on UNIX and Linux systems, type the following command in a terminal window:

man -M as-install-parent/pkg/man/ pkg

To view this man page on Windows systems, use the type command to view the file as-install-parent\pkg\man\cat1\pkg.1.