1INSTALL(1)                       User Commands                      INSTALL(1)
2
3
4

NAME

6       install - copy files and set attributes
7

SYNOPSIS

9       install [OPTION]... [-T] SOURCE DEST
10       install [OPTION]... SOURCE... DIRECTORY
11       install [OPTION]... -t DIRECTORY SOURCE...
12       install [OPTION]... -d DIRECTORY...
13

DESCRIPTION

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       --debug
47              explain how a file is copied.  Implies -v
48
49       -g, --group=GROUP
50              set group ownership, instead of process' current group
51
52       -m, --mode=MODE
53              set permission mode (as in chmod), instead of rwxr-xr-x
54
55       -o, --owner=OWNER
56              set ownership (super-user only)
57
58       -p, --preserve-timestamps
59              apply access/modification times of SOURCE files to corresponding
60              destination files
61
62       -s, --strip
63              strip symbol tables
64
65       --strip-program=PROGRAM
66              program used to strip binaries
67
68       -S, --suffix=SUFFIX
69              override the usual backup suffix
70
71       -t, --target-directory=DIRECTORY
72              copy all SOURCE arguments into DIRECTORY
73
74       -T, --no-target-directory
75              treat DEST as a normal file
76
77       -v, --verbose
78              print the name of each created file or directory
79
80       --preserve-context
81              preserve SELinux security context
82
83       -Z     set SELinux security context of destination file and  each  cre‐
84              ated directory to default type
85
86       --context[=CTX]
87              like  -Z,  or  if CTX is specified then set the SELinux or SMACK
88              security context to CTX
89
90       --help display this help and exit
91
92       --version
93              output version information and exit
94
95       The  backup  suffix  is  '~',  unless  set  with   --suffix   or   SIM‐
96       PLE_BACKUP_SUFFIX.   The version control method may be selected via the
97       --backup option or through the  VERSION_CONTROL  environment  variable.
98       Here are the values:
99
100       none, off
101              never make backups (even if --backup is given)
102
103       numbered, t
104              make numbered backups
105
106       existing, nil
107              numbered if numbered backups exist, simple otherwise
108
109       simple, never
110              always make simple backups
111

AUTHOR

113       Written by David MacKenzie.
114

REPORTING BUGS

116       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
117       Report any translation bugs to <https://translationproject.org/team/>
118
120       Copyright  ©  2023  Free Software Foundation, Inc.  License GPLv3+: GNU
121       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
122       This is free software: you are free  to  change  and  redistribute  it.
123       There is NO WARRANTY, to the extent permitted by law.
124

SEE ALSO

126       Full documentation <https://www.gnu.org/software/coreutils/install>
127       or available locally via: info '(coreutils) install invocation'
128
129
130
131GNU coreutils 9.3               September 2023                      INSTALL(1)
Impressum