
The pkgadd command transfers a software package to the voice system.
Synopsis
pkgadd [-n] [-d device] [[-M] -R host_path] [-V fs_file][-a admin_file][-r response] [-v] [pkg [pkg ...]]
pkgadd -s dir [-d device] [pkg [pkg ...]]
Description
The pkgadd command transfers the contents of a software package from the distribution medium or directory to the system. Used without the -d option, pkgadd looks in the default spool directory for the package ( /var/spool/pkg ). Used with the -s option, it reads the package to a spool directory instead of installing it.
When executed without options, pkgadd uses /var/spool/pkg (the default spool directory).
Note:
When transferring a package to a spool directory, the -r, -n, and -a options cannot be used. 
The pkgadd command has the parameters described in the following table:
Parameter  | 
Description  | 
Comments  | 
-a  | 
Define an installation administration file, admin, to be used in place of the default administration file  | 
The token none overrides the use of any admin file, and thus forces interaction with the user. Unless a full path name is given, pkgadd looks in the current directory for the file, and looks in the /var/sadm/install/admin directory.  | 
-d  | 
Install or copy a package from device  | 
Device can be a full path name to a directory or the identifiers for peripherals. It can also be a device alias (for example, /floppy/floppy0).  | 
-n  | 
Installation occurs in non-interactive mode  | 
The default mode is interactive. The -n option causes the installation to halt if any interaction is needed to complete it.  | 
-r  | 
Identify a file or directory that contains output from a previous pkgask session  | 
This file supplies the interaction responses that are requested by the package in interactive mode. Response must be a full pathname. The -r option can be used to indicate a directory name as well as a filename.  | 
-R  | 
Define the full path name of a subdirectory to use as the rootpath  | 
All files, including package system information files, are relocated to a directory tree, starting in the specified rootpath.  | 
-s  | 
Write the package into the directory spool instead of installing it  | 
�  | 
Example
The following example installs a package from a directory. The system prompts you for the name of the package you want to install.
   pkgadd -d /export/optional_features
See also