Linux Software Installation Install command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.