Linux RPM command explanation

Source: Internet
Author: User
Tags gpg

RPM (RedHat Package Manager)

Function Description:Management Suite.

Syntax:Rpm [-acdhilqssp] [-B <completion phase> <suite File> +] [-E <suite block>] [-F <File> +] [-I <suite File >] [-P <kit File> +] [-u <kit File>] [-VV] [-- addsign <kit File> +] [-- allfiles] [-- allmatches] [-- badreloc] [-- buildroot <root directory>] [-- changelog] [-- checksig <suite File> +] [-- clean] [-- dbpath <database directory>] [-- dump] [-- excludedocs] [-- excludepath <exclude directory>] [-- force] [-- ftpproxy

Note:RMP was originally a program used by Red Hat Linux to manage various Linux suites. It is popular because it complies with GPL rules and features are powerful and convenient. Gradually adopted by other releases. The emergence of the RPM suite management method makes Linux easy to install and upgrade, indirectly improving the applicability of Linux.

Parameters:
-A: Query all suites.
-B <completion phase> <package File> + or-T <completion phase> <package File> + set the package completion phase, and specify the file name of the package file.
-C only lists the configuration files. This parameter must be used with the "-l" parameter.
-D only lists text files. This parameter must be used with the "-l" parameter.
-E <suite File> or -- Erase <suite File> deletes the specified suite.
-F <File> + query suites with specified files.
-H or -- Mark listed during hash suite installation.
-I: displays information about the suite.
-I <suite File> or -- install <suite File> to install the specified suite file.
-L displays the file list of the suite.
-P <kit File> + query the specified RPM kit file.
-Q: In the query mode, when you encounter any problems, the RPM command First asks the user.
-R: displays the correlation information of the suite.
-S: displays the File status. This parameter must be used with the "-l" parameter.
-U <suite File> or -- upgrade <suite File> Upgrade the specified suite file.
-V shows the command execution process.
-VV displays the instruction execution process in detail to facilitate troubleshooting.
-Addsign <suite File> + Add new signature authentication to the specified suite.
-- Allfiles: Install all files.
-- Allmatches: delete the files contained in the specified suite.
-- Reconfigure the file when an error occurs in badreloc.
-- Buildroot <root directory> specifies the directory to be treated as the root directory when generating a suite.
-- Changelog displays the change records of the suite.
-- Checksig <suite File> + verifies the signature authentication of the suite.
-- Clean: After packaging the package, delete the directory created during the packaging process.
-- Dbpath <database directory> specifies the directory for storing the RPM database.
-- Dump: displays the verification information for each file. This parameter must be used with the "-l" parameter.
-- Excludedocs do not install files when installing the suite.
-- Excludepath <exclude directory> ignores all files in the specified directory.
-- Force replacement kit or file.
-- Ftpproxy -- Ftpport <communication port> sets the communication port used by the FTP server or proxy server.
-- Help Online Help.
-- Httpproxy -- Httpport <communication port> sets the communication port used by the HTTP server or proxy server.
-- Ignorearch does not verify the structure correctness of the suite file.
-- Ignoreos does not verify the structure correctness of the suite file.
-- Check whether the disk space is sufficient before ignoresize is installed.
-- When installing the dedocs package, install the file together.
-- Initdb confirms that a correct database can be used.
-- Justdb updates the database without changing any files.
-- Nobulid does not execute any completion stage.
-- Nodeps does not verify the association of the suite files.
-- Nofiles does not verify the attributes of the file.
-- Nogpg skips all GPG signature authentication.
-- Nomd5 does not use MD5 encoding to verify the file size and correctness.
-- Nopgp: the signature authentication of all PGP is skipped.
-- Noorder does not re-orchestrate the installation sequence of the suite to meet their correlations.
-- Noscripts does not execute any script installation files.
-- Notriggers does not execute any script files in the package of this suite.
-- Upgrade oldpackage to an earlier version.
-- The percentage of completions displayed when the percent package is installed.
-- Pipe <execution command> creates an MPS queue and converts the output result to the input data of the command.
-- Prefix <target directory> If you reconfigure the file, put the file in the specified directory.
-- Provides: query the compatibility provided by the suite.
-- Queryformat <File Header Format> sets the format of the file header.
-- Querytags: Lists tags that can be used in the Document Header Format.
-- Rcfile <Configuration File> uses the specified configuration file.
-- Rebulid <suite File> install the original code suite to regenerate the suite of binary files.
-- Rebuliddb is based on the existing database and creates a new database.
-- Recompile <suite File> the effect of this parameter is similar to that of the specified "-- rebulid" parameter.
-- Relocate <original directory >=< new directory> change the files originally placed in the original directory to the new directory.
-- Replacefiles forcibly replace files.
-- Replacepkgs force replacement kit.
-- Requires query the compatibility required by the suite.
-- Resing <package File> + Delete existing authentication and re-generate signature authentication.
-- Rmsource: After packaging the package, delete the original code.
-- Rmsource <File> deletes the original code and specified files.
-- Root <root directory> specifies the directory to be treated as the root directory.
-- Scripts lists the script variables of the installation kit.
-- Setperms: sets the object ACL.
-- Setugids: Set the owner and group of the file.
-- Short-circuit directly skips the steps of the specified completion stage.
-- Sign generates signature authentication for PGP or GPG.
-- Target = <Installation Platform> + sets the Installation Platform of the generated suite.
-- Test is only used for testing and does not really install the suite.
-- Timecheck <check seconds> sets the time in seconds for the check.
-- Triggeredby <suite File> query the package of the suite.
-- Triggers: displays the packaging scripts in the kit file.
-- Verify this parameter has the same effect as the specified "-Q" parameter.
-- Version: displays the version information.
-- Whatprovides <feature> queries the compatibility provided by the suite for the specified feature.
-- Whatrequires <feature> query the compatibility required by the suite for the specified feature.

Related Article

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.