2 .\" Copyright 1989 AT&T Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PKGASK 1M "Apr 6, 2005"
8 pkgask \- stores answers to a request script
12 \fBpkgask\fR [\fB-d\fR \fIdevice\fR] [\fB-R\fR \fIroot_path\fR] \fB-r\fR \fIresponse\fR \fIpkginst\fR...
18 \fBpkgask\fR allows the administrator to store answers to an interactive
19 package (one with a \fBrequest\fR script, that is, a user-created file that
20 must be named \fBrequest\fR). Invoking this command generates a response file
21 that is then used as input at installation time. The use of this response file
22 prevents any interaction from occurring during installation since the file
23 already contains all of the information the package needs.
27 The following options are supported
31 \fB\fB-d\fR\fI device\fR\fR
34 Run the request script for a package on \fIdevice\fR. \fIdevice\fR can be a
35 directory pathname or the identifiers for tape, floppy disk or removable disk
36 (for example, \fB/var/tmp\fR, \fB/dev/diskette\fR, and \fB/dev/dsk/c1d0s0\fR).
37 The default device is the installation spool directory.
43 \fB\fB-R\fR\fI root_path\fR\fR
46 Define the full path name of a directory to use as the \fIroot_path\fR. All
47 files, including package system information files, are relocated to a directory
48 tree starting in the specified \fIroot_path\fR.
53 The root file system of any non-global zones must not be referenced with the
54 \fB-R\fR option. Doing so might damage the global zone's file system, might
55 compromise the security of the global zone, and might damage the non-global
56 zone's file system. See \fBzones\fR(5).
63 \fB\fB-r\fR\fI response\fR\fR
66 Identify a file or directory which should be created to contain the responses
67 to interaction with the package. The name must be a full pathname. The file, or
68 directory of files, can later be used as input to the \fBpkgadd\fR(1M) command.
74 The following operands are supported:
81 Specify the package instance, or list of instances for which \fBrequest\fR
82 scripts will be created. The token \fBall\fR may be used to refer to all
83 packages available on the source medium.
93 Successful completion.
108 \fBpkginfo\fR(1), \fBpkgmk\fR(1), \fBpkgparam\fR(1), \fBpkgproto\fR(1),
109 \fBpkgtrans\fR(1), \fBinstallf\fR(1M), \fBpkgadd\fR(1M), \fBpkgchk\fR(1M),
110 \fBpkgrm\fR(1M), \fBremovef\fR(1M), \fBadmin\fR(4),\fBattributes\fR(5)
117 The \fB-r\fR option can be used to indicate a directory name as well as a
118 filename. The directory name is used to create numerous response files, each
119 sharing the name of the package with which it should be associated. This would
120 be used, for example, when you will be adding multiple interactive packages
121 with one invocation of \fBpkgadd\fR(1M). Each package would need a response
122 file. To create multiple response files with the same name as the package
123 instance, name the directory in which the files should be created and supply
124 multiple instance names with the \fBpkgask\fR command. When installing the
125 packages, you will be able to identify this directory to the \fBpkgadd\fR(1M)
129 If the default \fBadmin\fR file is too restrictive, the administration file may
130 need to be modified to allow for total non-interaction during a package
131 installation. See\fBadmin\fR(4) for details.