source: trunk/minix/man/man1/install.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 4.2 KB
Line 
1.TH INSTALL 1
2.SH NAME
3install \- install files
4.SH SYNOPSIS
5.in +5
6.ti -5
7.B install
8.RB [ \-lcsz\fIN\fP "] [" \-o
9.IR owner ]
10.RB [ \-g
11.IR group ]
12.RB [ \-m
13.IR mode ]
14.RB [ \-S
15.IR stack ]
16.RI [ file1 ]
17.I file2
18.br
19.ti -5
20.B install
21.RB [ \-lcsz\fIN\fP "] [" \-o
22.IR owner ]
23.RB [ \-g
24.IR group ]
25.RB [ \-m
26.IR mode ]
27.RB [ \-S
28.IR stack ]
29.IR file " ... " dir
30.br
31.ti -5
32.B install \-d
33.RB [ \-o
34.IR owner ]
35.RB [ \-g
36.IR group ]
37.RB [ \-m
38.IR mode ]
39.I directory
40.in -5
41.SH DESCRIPTION
42.de SP
43.if t .sp 0.4
44.if n .sp
45..
46.B Install
47puts executables, manual pages, and library files in their proper place
48in the bin, man, and lib directories. The first two forms of the
49command are like
50.BR cp (1)
51copying either one file to another or copying several files to a
52directory. The "\fB\-d\fP" form is like
53.BR mkdir (1)
54with the
55.B \-p
56flag.
57.I File1
58may be omitted if neither
59.B \-l
60nor
61.B \-c
62is given to change the attributes of
63.IR file2 .
64.PP
65Attributes are always copied from the source file, use the options to change.
66Note that the source file's attributes are changed with the destination file
67if they are linked. So copy the file if you change it in a way that makes
68it read-only. You would otherwise not be able to compile a command again.
69.SH OPTIONS
70.TP
71.B \-l
72Link the destination to the source file instead of copying it. This is done
73to either save space on a file system with both the source and the bin
74directories on it, or to install synonyms to a command.
75.TP
76.B \-c
77Copy the source file to its proper place. This option is the default if
78.B \-l
79is not given. With
80.BR \-l ,
81the file is copied if the link fails.
82.TP
83.B \-s
84Strip the destination file of its symbol table,
85.I if
86it is an executable, and
87.I if
88it is actually copied. It has no effect on a link or a non-executable.
89.TP
90.B \-z
91Compress the executable using
92.BR compress (1)
93and prepend a header line that calls
94.BR zexec (1)
95to decompress and execute the binary. This will on average save 40% disk
96space at the expense of a slower startup time. Like
97.B \-s
98the file must be actually copied for the flag to have effect.
99.TP
100.BI \- N
101Use
102.BI "gzip \-" N
103to compress the binary. You may see up to 60% space savings, but it will
104take much longer.
105.I N
106is a digit from 1 to 9 telling the compression effort, see
107.BR gzip (1).
108.TP
109.B \-d
110Make a directory, usually to install files in a separate directory in a
111library. Intermediate directories in the path are created with the same
112attributes as the final directory. Only the attributes of the final
113directory are set if the directory exists.
114.TP
115.BI \-o " owner"
116Set the owner of the target. This only works if the invoker is the
117super-user, or if
118.B install
119is run setuid root and the invoker is a member of group zero. If
120.B \-o
121is omitted then the ownership is copied from the source file, or set to
122the id of the invoker if a directory is made.
123.TP
124.BI \-g " group"
125Like
126.BR \-o ,
127but for the group ownership of the target.
128.TP
129.BI \-m " mode"
130.I Mode
131is an octal number that specifies the mode the target should get. The
132default is the source file's mode with a
133.B chmod a+rX
134applied to it, or 755 for a new directory. Implies
135.BR "\-o 0" ,
136or
137.BR "\-g 0"
138if a file is to be set-uid or set-gid and the invoker has permission to
139change ownership. This trick allows a group 0 member to install third party
140software, even though it expects to be installed by root.
141.TP
142.BI \-S " stack"
143Sets the maximum amount of heap + stack that an executable may have when
144running. The argument is a C-style decimal, octal or hexadecimal
145number, optionally followed by the multipliers
146.BR m ,
147.BR k ,
148.BR w ,
149and
150.B b
151for mega (1024*1024), kilo (1024), "word" (2 or 4), and byte (1). Uppercase
152.B M
153is also accepted for those who know what S.I. means. The compilers use
154.B \-S 32kw
155by default, that translates to 64kb for an 8086, and 128kb for other
156architectures. This option is ignored on a non-executable.
157.SH "SEE ALSO"
158.BR ln (1),
159.BR cp (1),
160.BR strip (1),
161.BR compress (1),
162.BR gzip (1),
163.BR zexec (1),
164.BR chown (8),
165.BR chgrp (1),
166.BR chmod (1),
167.BR chmem (1),
168.BR mkdir (1).
169.SH BUGS
170Uppercase
171.BR K ,
172.BR W ,
173and
174.B B
175are also accepted for those who don't know what S.I. means.
176.SH AUTHOR
177Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.