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 content of source and destination files, and if no
36 change to content, ownership, and permissions, do not modify the
37 destination at all
38
39 -d, --directory
40 treat all arguments as directory names; create all components of
41 the specified directories
42
43 -D create all leading components of DEST except the last, or all
44 components of --target-directory, then copy SOURCE to DEST
45
46 -g, --group=GROUP
47 set group ownership, instead of process' current group
48
49 -m, --mode=MODE
50 set permission mode (as in chmod), instead of rwxr-xr-x
51
52 -o, --owner=OWNER
53 set ownership (super-user only)
54
55 -p, --preserve-timestamps
56 apply access/modification times of SOURCE files to corresponding
57 destination files
58
59 -s, --strip
60 strip symbol tables
61
62 --strip-program=PROGRAM
63 program used to strip binaries
64
65 -S, --suffix=SUFFIX
66 override the usual backup suffix
67
68 -t, --target-directory=DIRECTORY
69 copy all SOURCE arguments into DIRECTORY
70
71 -T, --no-target-directory
72 treat DEST as a normal file
73
74 -v, --verbose
75 print the name of each directory as it is created
76
77 -P, --preserve-context
78 preserve SELinux security context (-P deprecated)
79
80 -Z set SELinux security context of destination file and each cre‐
81 ated directory to default type
82
83 --context[=CTX]
84 like -Z, or if CTX is specified then set the SELinux or SMACK
85 security context to CTX
86
87 --help display this help and exit
88
89 --version
90 output version information and exit
91
92 The backup suffix is '~', unless set with --suffix or SIM‐
93 PLE_BACKUP_SUFFIX. The version control method may be selected via the
94 --backup option or through the VERSION_CONTROL environment variable.
95 Here are the values:
96
97 none, off
98 never make backups (even if --backup is given)
99
100 numbered, t
101 make numbered backups
102
103 existing, nil
104 numbered if numbered backups exist, simple otherwise
105
106 simple, never
107 always make simple backups
108
110 Written by David MacKenzie.
111
113 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
114 Report any translation bugs to <https://translationproject.org/team/>
115
117 Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU
118 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
119 This is free software: you are free to change and redistribute it.
120 There is NO WARRANTY, to the extent permitted by law.
121
123 Full documentation <https://www.gnu.org/software/coreutils/install>
124 or available locally via: info '(coreutils) install invocation'
125
126
127
128GNU coreutils 9.1 January 2023 INSTALL(1)