.Nm install
.Nd install binaries
.Sh SYNOPSIS
-.Nm
+.Nm install
.Op Fl bCcMpSsv
.Op Fl B Ar suffix
.Op Fl f Ar flags
.Op Fl m Ar mode
.Op Fl o Ar owner
.Ar file1 file2
-.Nm
+.Nm install
.Op Fl bCcMpSsv
.Op Fl B Ar suffix
.Op Fl f Ar flags
.Op Fl m Ar mode
.Op Fl o Ar owner
.Ar file1 ... fileN directory
-.Nm
+.Nm install
.Fl d
.Op Fl v
.Op Fl g Ar group
.Pp
The options are as follows:
.Bl -tag -width indent
+.\" ==========
+.It Fl B Ar suffix
+Use
+.Ar suffix
+as the backup suffix if
+.Fl b
+is given.
+.\" ==========
.It Fl b
Back up any existing files before overwriting them by renaming
them to
See
.Fl B
for specifying a different backup suffix.
-.It Fl B Ar suffix
-Use
-.Ar suffix
-as the backup suffix if
-.Fl b
-is given.
+.\" ==========
.It Fl C
Copy the file.
If the target file already exists and the files are the same,
then don't change the modification time of the target.
+.\" ==========
.It Fl c
Copy the file.
This is actually the default.
The
.Fl c
option is only included for backwards compatibility.
+.\" ==========
.It Fl d
Create directories.
Missing parent directories are created as required.
+.\" ==========
.It Fl f
Specify the target's file flags; see
.Xr chflags 1
for a list of possible flags and their meanings.
+.\" ==========
.It Fl g
Specify a group.
A numeric GID is allowed.
+.\" ==========
.It Fl M
Disable all use of
.Xr mmap 2 .
+.\" ==========
.It Fl m
Specify an alternate mode.
The default mode is set to rwxr-xr-x (0755).
The specified mode may be either an octal or symbolic value; see
.Xr chmod 1
for a description of possible mode values.
+.\" ==========
.It Fl o
Specify an owner.
A numeric UID is allowed.
+.\" ==========
.It Fl p
Preserve the modification time.
Copy the file, as if the
(compare and copy) option is specified,
except if the target file doesn't already exist or is different,
then preserve the modification time of the file.
+.\" ==========
.It Fl S
Safe copy.
Normally,
-.Nm
+.Nm install
unlinks an existing target before installing the new file.
With the
.Fl S
the target.
The reason this is safer is that if the copy or
rename fails, the existing target is left untouched.
+.\" ==========
.It Fl s
-.Nm
+.Nm install
exec's the command
.Xr strip 1
to strip binaries so that
-.Nm
+.Nm install
can be portable over a large
number of systems and binary types.
+.\" ==========
.It Fl v
Causes
-.Nm
+.Nm install
to show when
.Fl C
actually installs something.
.El
.Pp
By default,
-.Nm
+.Nm install
preserves all file flags, with the exception of the
.Dq nodump
flag.
.Pp
The
-.Nm
+.Nm install
utility attempts to prevent moving a file onto itself.
.Pp
Installing
creates an empty file.
.Sh DIAGNOSTICS
The
-.Nm
+.Nm install
utility exits 0 on success, and 1 otherwise.
.Sh FILES
.Bl -tag -width INS@XXXX -compact
.El
.Sh COMPATIBILITY
Historically
-.Nm
+.Nm install
moved files by default.
The default was changed to copy in
.Fx 4.4 .
.Xr chown 8
.Sh HISTORY
The
-.Nm
+.Nm install
utility appeared in
.Bx 4.2 .
.Sh BUGS
Temporary files may be left in the target directory if
-.Nm
+.Nm install
exits abnormally.
.Pp
File flags cannot be set by
.Xr fchflags 2
over a NFS file system. Other file systems do not have a concept of flags.
-.Nm
+.Nm install
will only warn when flags could not be set on a file system
that does not support them.
.Pp
-.Nm
+.Nm install
with
.Fl v
falsely says a file is copied when