Commit | Line | Data |
---|---|---|
db222088 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
ef8cedab | 5 | .\" @(#)install.1 6.1 (Berkeley) %G% |
db222088 | 6 | .\" |
ef8cedab | 7 | .TH INSTALL 1 "" |
db222088 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | install \- install binaries | |
11 | .SH SYNOPSIS | |
12 | .B install | |
13 | [ | |
14 | .B \-c | |
15 | ] [ | |
16 | .B \-m | |
17 | mode ] [ | |
18 | .B \-o | |
19 | owner ] [ | |
20 | .B \-g | |
21 | group ] [ | |
22 | .B \-s | |
23 | ] binary destination | |
24 | .SH DESCRIPTION | |
25 | .I Binary | |
26 | is moved (or copied if | |
27 | .B \-c | |
28 | is specified) to | |
29 | .IR destination . | |
30 | If | |
31 | .I destination | |
32 | already exists, | |
33 | it is removed before | |
34 | .I binary | |
35 | is moved. | |
36 | If the destination is a directory then | |
37 | .I binary | |
38 | is moved into the | |
39 | .I destination | |
40 | directory with its original file-name. | |
41 | .PP | |
42 | The mode for | |
43 | .I Destination | |
44 | is set to 755; the | |
45 | .B \-m | |
46 | .I mode | |
47 | option may be used to specify a different mode. | |
48 | .PP | |
49 | .I Destination | |
50 | is changed to owner root; the | |
51 | .B \-o | |
52 | .I owner | |
53 | option may be used to specify a different owner. | |
54 | .PP | |
55 | .I Destination | |
56 | is changed to group staff; the | |
57 | .B \-g | |
58 | .I group | |
59 | option may be used to specify a different group. | |
60 | .PP | |
61 | If the | |
62 | .B \-s | |
63 | option is specified the binary is stripped after being installed. | |
64 | .PP | |
65 | .I Install | |
66 | refuses to move a file onto itself. | |
67 | .SH "SEE ALSO" | |
68 | chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8) |