DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Packaging your software applications

The installation scripts

The pkgadd(1M) command automatically performs the actions necessary to install a package, using the package information files as input. As a result, you do not have to supply any packaging scripts. However, if you want to customize the installation procedures for your package needs, the following three types of scripts can be used:


request script
Solicits administrator interaction during package installation for the purpose of assigning or redefining environment parameter assignments.

class action scripts
Defines an action or set of actions that should be applied to a class of files during installation or removal. You define your own classes or you can use one of three standard classes (sed, awk, and build). See ``3. Placing objects into classes'' for details on how to define a class.

procedure scripts
Specifies a procedure to be invoked before or after the installation or removal of a package. The four procedure scripts are preinstall, postinstall, preremove, and postremove.

You decide which type of script to use based on when you want the script to execute.


NOTE: All installation scripts must be executable by sh (for example, a shell script or an executable program).


Next topic: Script processing
Previous topic: pkgmap

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004