Purpose
Configures files and directories on the local disk
Synopsis
package [initcmd] [-config <base name of configuration file>] [-fullconfig <full name of configuration file, or stdin for standard input>] [-overwrite] [-noaction] [-verbose] [-silent] [-rebootfiles] [-debug] [-help] package [i] [-c <base name of configuration file>] [-f <full name of configuration file, or stdin for standard input>] [-o] [-n] [-v] [-s] [-r] [-d] [-h]
Description
The package command configures the machine's local disk to comply with the instructions in the configuration file named by the -config or -fullconfig argument.
By default, the package command alters any existing local disk element whose contents or configuration does not match the element defined in the configuration file. For example, if a configuration file D instruction defines a directory that has the same name as a symbolic link on the local disk, the package command replaces the symbolic link with the directory. The F and L instructions include an optional update_code field that alters this behavior.
Also by default, the package command takes no action on elements on the local disk that are not mentioned in the configuration file. Use the D instruction's R update code to remove files from the disk directory that are not mentioned in the configuration file.
Before running the package command, the administrator must create the template file and other files on the local disk. For instructions, see the IBM AFS Administration Guide.
It is not possible to configure a remote client machine's disk using this command.
Cautions
The package command interpreter exits without executing any instruction if there are any syntax errors or incorrect values in the configuration file.
Options
Provide this argument or the -fullconfig argument.
Provide this argument or the -config argument.
Examples
This command is usually invoked in a client machine's AFS initialization file (/etc/rc or equivalent), rather than issued at the command shell prompt.
The following command invokes the version of the staff configuration file appropriate for this machine's system type, and produces verbose output.
# /etc/package -c staff -v
The following example uses the configuration file whose basename is defined in the /.package file on the local machine. This method enables the administrator to use the same package command in every machine's AFS initialization file but still customize configuration by putting the appropriate basename in the /.package file.
# /etc/package -c `cat /.package` -v
Privilege Required
The issuer must be logged in as the local superuser root.
Related Information