INSTALL(8) | Maintenance Commands and Procedures | INSTALL(8) |
install - install commands
/usr/sbin/install -c dira [-m mode] [-u user] [-g group]
[-o] [-s] file
/usr/sbin/install -f dirb [-m mode] [-u user] [-g group]
[-o] [-s] file
/usr/sbin/install -n dirc [-m mode] [-u user] [-g group]
[-o] [-s] file
/usr/sbin/install -d | -i [-m mode] [-u user] [-g group]
[-o] [-s] dirx...
/usr/sbin/install [-m mode] [-u user] [-g group] [-o] [-s] file
[dirx]...
install is most commonly used in ``makefiles'' (see make(1S)) to install a file in specific locations, or to create directories within a file system. Each file is installed by copying it into the appropriate directory.
install uses no special privileges to copy files from one place to another. The implications of this are:
Note that if the ROOT environment variable is set, each of the default directory paths are prefixed by its value (for example, $ROOT/bin and so on).
install prints messages telling the user exactly what files it is replacing or creating and where they are going.
If no options or directories (dirx ...) are given, install searches a set of default directories (/bin, /usr/bin, /etc, /lib, and /usr/lib, 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, and proceeds to do so. If the file is not found, the program states this and exits.
If one or more directories (dirx ...) are specified after file, those directories are searched before the default directories.
This version of install (/usr/sbin/install) is not compatible with the install binaries in many versions of Unix other than Solaris. For a higher degree of compatibility with other Unix versions, use /usr/ucb/install, which is described in the install(1B) man page.
The following options are supported:
-c dira
-f dirb
-n dirc
-d
-i
-m mode
-u user
-g group
-o
-s
See largefile(7) for the description of the behavior of install when encountering files greater than or equal to 2 Gbyte (2^31 bytes).
chgrp(1), chmod(1), chown(1), cp(1), mkdir(1), install(1B), make(1S), attributes(7), largefile(7)
February 17, 2023 | OmniOS |