How to use the Linux rpm command

Source: Internet
Author: User
Tags ftp gpg

Rmp (redhat package manager) was originally a program used by the Red Hat Linux release to manage various Linux suites. It is popular because it complies with GPL rules and has powerful functions and convenience. 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.

Syntax

Rpm [-acdhilqssp] [-B <completion phase> <suite File> +] [-e <suite block>] [-f <FILE> +] [-I <suite file >] [-p <suite File> +]

[-U <kit File>] [-vv] [-- addsign <kit File> +] [-- allfiles] [-- allmatches] [-- badreloc] [-- buildroot <Root Directory>]

[-- Changelog] [-- checksig <kit File> +] [-- clean] [-- dbpath <Database Directory>] [-- dump] [-- excludedocs]

[-- Excludepath <exclude Directory>] [-- force] [-- ftpproxy

[-- Httpproxy

[-- Includedocs] [-- initdb] [justdb] [-- nobulid] [-- nodeps] [-- nofiles] [-- nogpg] [-- nomd5] [-- nopgp]

[-- Noorder] [-- noscripts] [-- notriggers] [-- oldpackage] [-- percent] [-- pipe <execution command>]

[-- Prefix <target Directory>] [-- provides] [-- queryformat <File Header Format>] [-- querytags] [-- rcfile <Configuration File>]

[-- Rebulid <suite File>] [-- rebuw.db] [-- recompile <suite File>] [-- relocate <original Directory> = <New Directory>]

[-- Replacefiles] [-- replacepkgs] [-- requires] [-- resign <suite File> +] [-- rmsource] [-- rmsource <FILE>]

[-- Root <root Directory>] [-- scripts] [-- setperms] [-- setugids] [-- short-circuit] [-- sign] [-- target = <installation platform> +]

[-- Test] [-- timecheck <check seconds>] [-- triggeredby <suite File>] [-- triggers] [-- verify] [-- version]

[-- Whatprovides <feature>] [-- whatrequires <feature>]

Parameter description:

  • -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.

Instance

Install software

# Rpm hvi dejagnu-1.4.2-10.noarch.rpm

Warning dejagnu-1.4.2-10.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Prepare...

######################################## ### [100%]

Show Software Installation Information

# Rpm-qi dejagnu-1.4.2-10.noarch.rpm

[1st update tutorials, similar command associations]

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.