install
[options
]file
[directories
]
Used primarily in makefiles to update files.
install
tries to locate an old version of
file
by searching user-supplied
directories
(or default directories such as
/bin
or
/etc
).
file
is then copied to the directory, overwriting the older version. Normally, if no older
file
exists,
install
does nothing.
dir
Conditional copy; if
file
already exists in
dir
, do nothing; otherwise, copy
file
to
dir
.
dir
Forced copy; copy
file
to
dir
, whether or not
file
is already there.
group
Set group ID of new file to
group
(privileged users only).
When searching for
file
, ignore default directories but search specified
directories
. Normally, both sets are searched (with user-supplied directories searched before defaults).
-c
and
-f
are invalid with
-i
.
mode
Set permissions of new file to
mode
.
dir
Place
file
in
dir
if it's not in any of the default directories.
Save old version of
file
in
OLD
file
instead of overwriting it.
Suppress all messages except error messages.
user
Set owner of new file to
user
.