This section describes the commands, files, and scripts that you might use when manipulating packages. They are described in man pages and in detail throughout this book, in relation to the specific task they perform.
The following table shows the commands to help you build, verify, install, and obtain information about a package.
Table 1–2 Packaging Commands
Task |
Command/ man Page |
Description |
For More Information |
---|---|---|---|
Create packages |
Generates a prototype file for input to the pkgmk command | ||
Creates an installable package |
|
||
Install, remove, and transfer packages |
Installs a software package onto a system | ||
Stores answers to a request script |
|
||
Copies packages onto a distribution medium |
|
||
Removes a package from a system |
|
||
Obtain information about packages |
Verifies the integrity of a software package | ||
Displays software package information |
|
||
Displays package parameter values |
|
||
Modify installed packages |
Incorporates a new package object into an already installed package |
Design Rules for Procedure Scripts and Chapter 5, Case Studies of Package Creation |
|
Removes a package object from an already installed package |
|
The following table shows the information files that help you build a package.
Table 1–3 Package Information Files
File |
Description |
For More Information |
---|---|---|
Package installation defaults file | ||
Package compatibility file | ||
Package copyright information file | ||
Package dependencies file | ||
Package characteristics file | ||
Package contents description file | ||
Package information file | ||
Package disk space requirements file |
The following table describes optional installation scripts that you can write that affect if and how a package is installed.
Table 1–4 Package Installation Scripts
Script |
Description |
For More Information |
---|---|---|
request |
Solicits information from the installer | |
checkinstall |
Gathers file system data | |
preinstall |
Performs any custom installation requirements before class installation | |
postinstall |
Performs any custom installation requirements after all volumes are installed | |
preremove |
Performs any custom removal requirements before class removal | |
postremove |
Performs any custom removal requirements after all classes have been removed | |
Class action |
Performs a series of actions on a specific group of objects |