|
|
HP-UX Reference > Iinstall(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEinstall — install commands SYNOPSIS/usr/sbin/install [-c dira] [-f dirb] [-i] [-n dirc] [-o] [-g group] [-s] [-u user] file [dirx ...] DESCRIPTIONinstall is a command most commonly used in ``makefiles'' (see make(1)) to install a file (updated target file) in a specific place within a file system. Each file is installed by copying it into the appropriate directory, thereby retaining the mode and owner of the original command. The program prints messages telling the user exactly what files it is replacing or creating and where they are going. install is useful for installing new commands, or new versions of existing commands, in the standard directories (i.e. /usr/bin, /usr/sbin, etc.). If no options or directories (dirx...) are given, install searches a set of default directories (/usr/bin, /usr/sbin, /sbin, and /usr/lbin, in that order) for a file with the same name as file. When the first occurrence is found, install issues a message saying that it is overwriting that file with file (the new version), and proceeds to do so. If the file is not found, the program states this and exits without further action. If one or more directories (dirx ...) are specified after file, those directories are searched before the directories specified in the default list. OptionsOptions are interpreted as follows:
When no directories are specified (dirx ...), or when file cannot be placed in one of the directories specified, install checks for the existence of the file /etc/syslist. If /etc/syslist exists, it is used to determine the final destination of file. If /etc/syslist does not exist, the default directory list is further scanned to determine where file is to be located. The file /etc/syslist contains a list of absolute pathnames, one per line. The pathname is the "official" destination (for example /usr/bin/echo) of the file as it appears on a file system. The file /etc/syslist serves as a master list for system command destinations. If there is no entry for file in the file /etc/syslist the default directory list is further scanned to determine where file is to be located. Cross GenerationThe environment variable ROOT is used to locate the locations file (in the form $ROOT/etc/syslist). This is necessary in cases where cross generation is being done on a production system. Furthermore, each pathname in $ROOT/etc/syslist is appended to $ROOT (for example, $ROOT/usr/bin/echo), and used as the destination for file. Also, the default directories are also appended to $ROOT so that the default directories are actually $ROOT/usr/bin, $ROOT/usr/sbin, $ROOT/sbin, and $ROOT/usr/lbin. The file /etc/syslist ($ROOT/etc/syslist) does not exist on a distribution tape; it is created and used by local sites. |
|