Solaris Internationalization Guide For Developers

How to Add Packages to a Standalone System

  1. Log in as root.

  2. Remove any packages with the same name as the ones you are adding.

    This ensures that the system keeps a proper record of software that has been added and removed. There may be times when you want to maintain multiple versions of the same application on the system. For strategies on how to do this, see "Guidelines for Removing Packages," and for task information, see "How to Remove a Package." Both of these can be found in the System Administration Guide

  3. Add one or more software packages to the system.


    # pkgadd -a admin-file -d device-name pkgid...
    

    In this command,

    -a admin-file

    (Optional) Specifies an administration file that pkgadd should consult during the installation. (For details about using an administration file, see the System Administration Guide.

    -d device-name

    Specifies the absolute path to the software packages. Device-name can be a path to a device, a directory, or a spool directory. If you do not specify the path where the package resides, the pkgadd command checks the default spool directory (/var/spool/pkg). If the package is not there, the package installation fails.

    pkgid

    (Optional) Is the name of one or more packages (separated by spaces) to be installed. If spaces are omitted, the pkgadd command installs all available packages.

    If pkgadd encounters a problem during installation of the package, it displays a message related to the problem, followed by this prompt:


    Do you want to continue with this installation?

    Respond with yes, no, or quit. If more than one package has been specified, type no to stop the installation of the package being installed. pkgadd continues to install the other packages. Type quit to stop the installation.

  4. Verify that the package has been installed successfully, using the pkgchk command.


    # pkgchk -v pkgid
    

    If pkgchk determines there are no errors, it returns a list of installed files. Otherwise, it reports the error.