Install 1. function
The install command works by installing or upgrading software or backing up data, and its use rights are for all users.
2. Format
(1) Install [options] ... Source destination
(2) Install [options] ... Source... Directory
(3) install-d [options] ... Directory...
In the first two formats, the < source > is copied to < destination > or multiple < source > files are copied to the existing < directory, and both the permission mode and the owner/owning group are set. In the third format, all the specified directories and their home directories are created. The parameters that must be used for the long option are also required when using the short option.
3. Main parameters
--backup[=control]: A backup of each existing destination file.
-B: Similar to--backup, but does not accept any parameters.
-C: (This option is not processed).
-d,--directory: All parameters are processed as directories, and all home directories for the specified directory are created.
-D: Create all home directories < destinations >, and then copy < source > to < destinations >; in the first use format.
-g,--group= Group: Sets the owning group itself, not the group to which the process currently belongs.
-m,--mode= mode: Set your own permission mode (like chmod) instead of rwxr-xr-x.
-o,--owner= owner: Self-setting owner (for Superuser only).
-p,--preserve-timestamps: The time attribute of the corresponding destination file with the access/modification time of the < source > file.
-s,--strip: Remove the symbol table with the strip command only for the first and second use formats.
-s,--suffix= suffix: Specify the < suffix > for the backup file yourself.
-v,--verbose: Prints the name when each file/directory is processed.
--help: Displays this help message and leaves.
--version: Displays the version information and leaves. install-copy files and set Attributesinstall while making the copy, set the attributes. So use the install command as much as possible in makefile. For example @install-d/usr/bin@install-p-d-m 0755 targets/usr/bin equivalent to @mkdir-p/USR/BIN@CP targets/usr/bin@chmod 755/usr/bin/ Targets@touch/usr/bin/tagets <----update file timestamp install command strong. In addition, the @ prefix means that the results are not output from the console. This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/stevenliyong/archive/2009/10/13/4663583.aspx
Linux Software Installation Install command