Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux rpm command

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article analyzes "how to use the Linux rpm command". The content is detailed and easy to understand. Friends who are interested in "how to use the Linux rpm command" can follow the editor's train of thought to read it in depth. I hope it will be helpful to you after reading. Let's follow the editor to learn more about how to use the Linux rpm command.

Linux commonly used commands rpm commands for the management suite, rpm is originally a Red Hat Linux distribution specifically used to manage the Linux suite of procedures, because it follows GPL rules and powerful and convenient functions, so widely popular, the following to share with you the specific use of Linux commands rpm commands.

Syntax rpm [- acdhilqRsv] [- b+] [- e] [- f+] [- I] [- p+] [- U] [- vv] [--addsign+] [--allfiles] [--allmatches] [--badreloc] [--buildroot] [--changelog] [--checksig+] [--clean] [--dbpath] [--dump] [--excludedocs] [--excludepath] [--ftpproxy] [--ftpport] [--help] [--httpproxy] ] [--httpport] [--ignorearch] [--ignoresize] [--includedocs] [--initdb] [justdb] [--nobulid] [--nodeps] [--nofiles] [--nogpg] [--nomd5] [--nopgp] [--noorder] [--notriggers] [--oldpackage] [--percent] [--pipe] [--prefix] [--provides] [--queryformat] [--querytags] [--rcfile] [ -- rebulid] [--rebuliddb] [--relocate=] [--replacefiles] [--replacepkgs] [--requires] [--resign+] [--rmsource] [--rmsource] [--scripts] [--setperms] [--setugids] [--sign] [--target=+] [--test] [--timecheck] [--triggeredby] [--triggers] [--verify] [- version] [--whatprovides] [--whatrequires] parameter description:

-a query all packages.

-b + or-t + sets the completion phase of the wrapper package and specifies the file name of the package file.

-c only the configuration file is listed. This parameter should be used with the "- l" parameter.

-d only text files are listed. This parameter should be used in conjunction with the "- l" parameter.

-e or-erase deletes the specified suite.

-f + queries the suite that owns the specified file.

Flags are listed when-h or-hash suite is installed.

-I displays information about the suite.

-I or-install installs the specified package file.

-l displays a list of files for the suite.

-p + query the specified RPM package file.

-Q uses the query mode, and when any questions are encountered, the rpm instruction asks the user first.

-R displays relevance information for the suite.

-s displays the file status. This parameter should be used in conjunction with the "- l" parameter.

-U or-upgrade upgrade the specified package file.

-v shows the instruction execution process.

-vv shows the instruction execution process in detail, which is easy to debug.

-addsign+ adds a new signature authentication to the specified package.

Allfiles installs all files.

Allmatches deletes files that match the specified package.

Reconfigure the file when an error occurs in badreloc.

Buildroot sets the directory that you want to use as the root directory when generating the suite.

Changelog displays the change record of the suite.

Checksig+ verifies the signature authentication of the suite.

After clean finishes packaging the package, delete the directory created during the packaging process.

Dbpath sets the directory where you want to store the RPM database.

Dump displays validation information for each file. This parameter should be used in conjunction with the "- l" parameter.

When excludedocs installs the suite, do not install files.

Excludepath ignores all files in the specified directory.

Force forcibly replaces packages or files.

Ftpproxy specifies the FTP proxy server.

Ftpport sets the communication port used by the FTP server or proxy server.

Help online help.

Httpproxy specifies the HTTP proxy server.

Httpport sets the communication port used by the HTTP server or proxy server.

Ignorearch does not verify the structural correctness of the package file.

Ignoreos does not verify the structural correctness of the package file.

Ignoresize does not check for sufficient disk space before installation.

When includedocs installs the package, install the files as well.

Initdb confirms that the correct database is available.

Justdb updates the database without changing any files.

Nobulid does not perform any completion phase.

Nodeps does not verify the correlation of package files.

Nofiles does not validate the properties of the file.

Nogpg skips all GPG signature authentication.

Nomd5 does not use MD5 encoding calculus to confirm the size and correctness of the file.

Nopgp skips all PGP signature authentication.

Noorder does not rearrange the installation order of suites so that they are related to each other.

Noscripts does not execute any installation Script files.

Notriggers does not execute any Script files in the package package.

Oldpackage is upgraded to an older version of the suite.

Percent displays the percentage of completion when installing the package.

Pipe establishes a pipeline to convert the output into the input data of the execution instruction.

If prefix reconfigures the file, it will put the file in the specified directory.

Provides queries the compatibility provided by the suite.

Queryformat sets the representation of the file header.

Querytags lists the tags that can be used in the header format.

Rcfile uses the specified configuration file.

Rebulid installs the original code suite and reproduces the binary package.

Rebuliddb rebuilds a database based on the existing database.

Recompile the effect of this parameter is similar to specifying the "- rebulid" parameter, when no package file is generated.

Relocate= changes the files that would have been placed in the original directory to the new directory.

Replacefiles forcibly replaces the file.

Replacepkgs forced replacement kit.

Requires queries the compatibility required by the suite.

Resing+ deletes the existing authentication and regenerates the signature authentication.

After rmsource finishes wrapping the package, delete the original code.

Rmsource deletes the original code and the specified file.

Root sets the directory you want to use as the root directory.

Scripts lists the variables for the Script where the package is installed.

Setperms sets the permissions for the file.

Setugids sets the owner and group of the file.

Short-circuit directly skips the steps to specify the completion phase.

Sign generates signature authentication for PGP or GPG.

The installation platform for the suite generated by the target=+ setting.

Test is only for testing and does not actually install the suite.

Timecheck sets the number of seconds to check the time.

Triggeredby queries the wrapper for the suite.

Triggers shows the packaging Script in the package file.

Verify this parameter has the same effect as specifying the "- Q" parameter.

Version displays version information.

Whatprovides queries the compatibility provided by the suite for the specified feature.

Whatrequires queries the compatibility required by the suite for the specified feature.

Instance installation 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 ready. # [100%] display software installation information

# rpm-qi dejagnu-1.4.2-10.noarch.rpm [first update tutorial, similar command association] what is a Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-tasking, multi-threading and multi-CPU operating system, using Linux to run major Unix tools, applications and network protocols.

On the use of the Linux rpm command to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report