1INSTALL(1) User Commands INSTALL(1)
2
3
4
6 install - copy files and set attributes
7
9 install [OPTION]... [-T] SOURCE DEST
10 install [OPTION]... SOURCE... DIRECTORY
11 install [OPTION]... -t DIRECTORY SOURCE...
12 install [OPTION]... -d DIRECTORY...
13
15 This install program copies files (often just compiled) into destina‐
16 tion locations you choose. If you want to download and install a
17 ready-to-use package on a GNU/Linux system, you should instead be using
18 a package manager like yum(1) or apt-get(1).
19
20 In the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to
21 the existing DIRECTORY, while setting permission modes and owner/group.
22 In the 4th form, create all components of the given DIRECTORY(ies).
23
24 Mandatory arguments to long options are mandatory for short options
25 too.
26
27 --backup[=CONTROL]
28 make a backup of each existing destination file
29
30 -b like --backup but does not accept an argument
31
32 -c (ignored)
33
34 -C, --compare
35 compare each pair of source and destination files, and in some
36 cases, do not modify the destination at all
37
38 -d, --directory
39 treat all arguments as directory names; create all components of
40 the specified directories
41
42 -D create all leading components of DEST except the last, then copy
43 SOURCE to DEST
44
45 -g, --group=GROUP
46 set group ownership, instead of process' current group
47
48 -m, --mode=MODE
49 set permission mode (as in chmod), instead of rwxr-xr-x
50
51 -o, --owner=OWNER
52 set ownership (super-user only)
53
54 -p, --preserve-timestamps
55 apply access/modification times of SOURCE files to corresponding
56 destination files
57
58 -s, --strip
59 strip symbol tables
60
61 --strip-program=PROGRAM
62 program used to strip binaries
63
64 -S, --suffix=SUFFIX
65 override the usual backup suffix
66
67 -t, --target-directory=DIRECTORY
68 copy all SOURCE arguments into DIRECTORY
69
70 -T, --no-target-directory
71 treat DEST as a normal file
72
73 -v, --verbose
74 print the name of each directory as it is created
75
76 -P, --preserve-context
77 preserve SELinux security context (-P deprecated)
78
79 -Z set SELinux security context of destination file to default type
80
81 --context[=CTX]
82 like -Z, or if CTX is specified then set the SELinux or SMACK
83 security context to CTX
84
85 --help display this help and exit
86
87 --version
88 output version information and exit
89
90 The backup suffix is '~', unless set with --suffix or SIM‐
91 PLE_BACKUP_SUFFIX. The version control method may be selected via the
92 --backup option or through the VERSION_CONTROL environment variable.
93 Here are the values:
94
95 none, off
96 never make backups (even if --backup is given)
97
98 numbered, t
99 make numbered backups
100
101 existing, nil
102 numbered if numbered backups exist, simple otherwise
103
104 simple, never
105 always make simple backups
106
107 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
108 Report install translation bugs to <http://translationpro‐
109 ject.org/team/>
110
112 Written by David MacKenzie.
113
115 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
116 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
117 This is free software: you are free to change and redistribute it.
118 There is NO WARRANTY, to the extent permitted by law.
119
121 The full documentation for install is maintained as a Texinfo manual.
122 If the info and install programs are properly installed at your site,
123 the command
124
125 info coreutils 'install invocation'
126
127 should give you access to the complete manual.
128
129
130
131GNU coreutils 8.22 October 2018 INSTALL(1)