install.1 (1879B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-05-01
- .Dt INSTALL 1
- .Os
- .Sh NAME
- .Nm install
- .Nd install binaries
- .Sh SYNOPSIS
- .Nm
- .Op Fl CcDpTv
- .Op Fl g Ar group
- .Op Fl m Ar mode
- .Op Fl o Ar owner
- .Ar source...
- .Ar destination
- .Nm
- .Op Fl CcDpTv
- .Op Fl g Ar group
- .Op Fl m Ar mode
- .Op Fl o Ar owner
- .Fl t Ar destination
- .Ar source...
- .Nm
- .Fl d
- .Op Fl cv
- .Op Fl g Ar group
- .Op Fl m Ar mode
- .Op Fl o Ar owner
- .Ar directory...
- .Sh DESCRIPTION
- .Nm
- copies the given
- .Ar source
- files to
- .Ar destination .
- If
- .Ar destination
- is a directory then source is copied into destination with its original filename,
- otherwise if it already exists, it is removed.
- .Pp
- The mode of
- .Ar destination
- is set to 755 unless
- .Fl m Ar mode
- is specified.
- .Sh OPTIONS
- .Bl -tag -width _o_owner
- .It Fl C
- Ignored, for compatibility with other implementations.
- .It Fl c
- Copy the file, default behavior in all modern implementations.
- .It Fl d
- Create directories, including their parents.
- .It Fl D
- Create parent directories for
- .Ar destination .
- .br
- Note that this option isn't portable, as
- .Fx
- and
- .Nx
- implementation of
- .Nm
- takes an argument like so:
- .Fl D Ar destdir
- .It Fl g Ar group
- Sets group ownership.
- .It Fl m Ar mode
- Sets alternative mode.
- The default mode is set to
- .Ql 0755/rwr-xr-x .
- .It Fl o Ar owner
- Sets user ownership.
- .It Fl p
- Preserve file access and modification times.
- .It Fl t Ar destination
- Use
- .Ar destination
- as directory to copy each
- .Ar source
- into.
- .It Fl T
- Treat
- .Ar destination
- as a normal file.
- Which asserts a single
- .Ar source
- operand.
- .It Fl v
- print the name of each created file or directory
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh HISTORY
- The
- .Nm
- utility appeared in
- .Bx 4.2 .
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me