Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man8/install.8
Real path: /usr/share/man/man8/install.8
Zurück
'\" te .\" Portions Copyright (c) 1996, 2021, Oracle and/or its affiliates. .\" Copyright (c) 1989, AT&T. All rights reserved. .TH install 8 "11 May 2021" "Oracle Solaris 11.4" "System Administration Commands" .SH NAME install \- install commands .SH SYNOPSIS .LP .nf \fB/usr/sbin/install\fR \fB-c\fR \fIdira\fR [\fB-m\fR \fImode\fR] [\fB-u\fR \fIuser\fR] [\fB-g\fR \fIgroup\fR] [\fB-o\fR] [\fB-s\fR] \fIfile\fR .fi .LP .nf \fB/usr/sbin/install\fR \fB-f\fR \fIdirb\fR [\fB-m\fR \fImode\fR] [\fB-u\fR \fIuser\fR] [\fB-g\fR \fIgroup\fR] [\fB-o\fR] [\fB-s\fR] \fIfile\fR .fi .LP .nf \fB/usr/sbin/install\fR \fB-n\fR \fIdirc\fR [\fB-m\fR \fImode\fR] [\fB-u\fR \fIuser\fR] [\fB-g\fR \fIgroup\fR] [\fB-o\fR] [\fB-s\fR] \fIfile\fR .fi .LP .nf \fB/usr/sbin/install\fR \fB-d\fR | \fB-i\fR [\fB-m\fR \fImode\fR] [\fB-u\fR \fIuser\fR] [\fB-g\fR \fIgroup\fR] [\fB-o\fR] [\fB-s\fR] \fIdirx\fR... .fi .LP .nf \fB/usr/sbin/install\fR [\fB-m\fR \fImode\fR] [\fB-u\fR \fIuser\fR] [\fB-g\fR \fIgroup\fR] [\fB-o\fR] [\fB-s\fR] \fIfile\fR [\fIdirx\fR]... .fi .SH DESCRIPTION .sp .LP \fBinstall\fR is most commonly used in \fBmakefiles\fR; (see \fBmake\fR(1S)) to install a \fBfile\fR in specific locations, or to create directories within a file system. Each \fBfile\fR is installed by copying it into the appropriate directory. .sp .LP \fBinstall\fR uses no special privileges to copy files from one place to another. The implications of this are: .RS +4 .TP .ie t \(bu .el o You must have permission to read the files to be installed. .RE .RS +4 .TP .ie t \(bu .el o You must have permission to copy into the destination directory. .RE .RS +4 .TP .ie t \(bu .el o You must have permission to change the modes on the final copy of the file if you want to use the \fB-m\fR option. .RE .RS +4 .TP .ie t \(bu .el o You must be super-user if you want to specify the ownership of the installed file with the \fB-u\fR or \fB-g\fR options. If you are not the super-user, the installed file is owned by you, regardless of who owns the original. .RE .sp .LP Note that if the \fBROOT\fR environment variable is set, each of the default directory paths are prefixed by its value (for example, \fB$ROOT/bin\fR and so on). .sp .LP \fBinstall\fR prints messages telling the user exactly what files it is replacing or creating and where they are going. .sp .LP If no options or directories (\fIdirx\fR .\|.\|.) are given, \fBinstall\fR searches a set of default directories (\fB/bin\fR, \fB/usr/bin\fR, \fB/etc\fR, \fB/lib\fR, and \fB/usr/lib\fR, in that order) for a file with the same name as \fBfile\fR. When the first occurrence is found, \fBinstall\fR issues a message saying that it is overwriting that file with \fBfile\fR, and proceeds to do so. If the file is not found, the program states this and exits. .sp .LP If one or more directories (\fIdirx\fR .\|.\|.) are specified after \fBfile\fR, those directories are searched before the default directories. .sp .LP This version of \fBinstall\fR (\fB/usr/sbin/install\fR) is not compatible with the \fBinstall\fR command in many systems other than Solaris. For a higher degree of compatibility with other systems, use \fBGNU\fR \fBinstall\fR described in the \fBinstall\fR(1) man page. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-c\fR \fIdira\fR\fR .ad .RS 12n .rt Install \fBfile\fR in the directory specified by \fIdira\fR, if \fBfile\fR does not yet exist. If it is found, \fBinstall\fR issues a message saying that the file already exists, and exits without overwriting it. .RE .sp .ne 2 .mk .na \fB\fB-f\fR \fIdirb\fR\fR .ad .RS 12n .rt Force \fBfile\fR to be installed in given directory, even if the file already exists. If the file being installed does not already exist, the mode and owner of the new file is set to \fB755\fR and \fBbin\fR \fB,\fR respectively. If the file already exists, the mode and owner is that of the already existing file. .RE .sp .ne 2 .mk .na \fB\fB-n\fR \fIdirc\fR\fR .ad .RS 12n .rt If \fBfile\fR is not found in any of the searched directories, it is put in the directory specified in \fIdirc\fR. The mode and owner of the new file is set to \fB755\fR and \fBbin\fR, respectively. .RE .sp .ne 2 .mk .na \fB\fB-d\fR\fR .ad .RS 12n .rt Create a directory. Missing parent directories are created as required as in \fBmkdir\fR \fB-p\fR. If the directory already exists, the owner, group and mode is set to the values given on the command line. .RE .sp .ne 2 .mk .na \fB\fB-i\fR\fR .ad .RS 12n .rt Ignore default directory list, searching only through the given directories (\fIdirx\fR .\|.\|.). .RE .sp .ne 2 .mk .na \fB\fB-m\fR \fImode\fR\fR .ad .RS 12n .rt The mode of the new file is set to \fImode\fR. Set to \fB0755\fR by default. .RE .sp .ne 2 .mk .na \fB\fB-u\fR \fIuser\fR\fR .ad .RS 12n .rt The owner of the new file is set to \fIuser\fR. Only available to the super-user. Set to \fBbin\fR by default. .RE .sp .ne 2 .mk .na \fB\fB-g\fR \fIgroup\fR\fR .ad .RS 12n .rt The group id of the new file is set to \fIgroup\fR. Only available to the super-user. Set to \fBbin\fR by default. .RE .sp .ne 2 .mk .na \fB\fB-o\fR\fR .ad .RS 12n .rt If \fBfile\fR is found, save the existing file by copying it to \fBOLD\fR\fBfile\fR in the directory in which it was found. This option is useful when installing a frequently used file such as \fB/bin/sh\fR or \fB/lib/saf/ttymon\fR, where the existing file cannot be removed. .RE .sp .ne 2 .mk .na \fB\fB-s\fR\fR .ad .RS 12n .rt Suppress printing of messages other than error messages. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os .TE .sp .SH SEE ALSO .sp .LP \fBmake\fR(1S), \fBchgrp\fR(1), \fBchmod\fR(1), \fBchown\fR(1), \fBcp\fR(1), \fBinstall\fR(1), \fBmkdir\fR(1), \fBattributes\fR(7)