-- Percent
Usage reference:
Rpm-I -- percent nmap-3.00-4.i386.rpm
Purpose:
The installation percentage is displayed.
-H or -- hash
Usage reference:
Rpm-I -- hash nmap-3.00-4.i386.rpm
Purpose:
The installation of large files is friendly. You don't have to worry about whether the machine is faulty.
-VV [for-I option]
Usage reference:
Rpm-I-VV nmap-3.00-4.i386.rpm
Purpose:
You can get more information during the installation process.
-- Excludedocs
Usage reference:
Rpm-I -- excludedocs nmap-3.00-4.i386.rpm
Purpose:
The doc document will not be installed, that is, you will have no nmap-3.00 under/usr/share/doc/directory. this is useful in the space required by the installation package. For example, are you creating a router?
-- Includedocs
Usage reference:
Rpm-I -- includedocs nmap-3.00-4.i386.rpm
Purpose:
Specify the document that must be installed with the package
-- Replacepkgs
Usage reference:
Rpm-I -- replacepkgs nmap-3.00-4.i386.rpm
Purpose:
Even if the package has been installed, force the package to be installed again.
-- Replacefiles
Usage reference:
Rpm-I -- replacefiles nmap-3.00-4.i386.rpm
Purpose:
Even if the package will overwrite some other package files, continue to install
-- Force
Usage reference:
Rpm-I -- force nmap-3.00-4.i386.rpm
Purpose:
Ignore conflicts between packages and files and force Installation
-- Noscripts
Usage reference:
Rpm-I -- noscripts vsftpd
Purpose:
% Pre and % post scripts in the vsftpd. spec file are not executed
Example: [% pre]
% Prep
% Setup-Q-N % {name}-% {version}
% Pattern-P1-B. RH
% Patch2-P1-B. Mok
CP % {source1 }.
Example: [% post]
% Post
/Sbin/chkconfig -- add vsftpd
/Usr/sbin/usermod-D/var/FTP ftp>/dev/null 2> & 1 |:
-- Prefix <path>
Usage reference:
Rpm-I -- prefix/tmp/local nmap-3.00-4.i386.rpm
Purpose:
This package is installed in the specified directory instead of the default directory.
-- Ftpproxy
Usage reference:
Rpm-I -- ftpproxy <proxy IP address> ftp://ftp.gnomovision.com/pub/rpms/...-1.0-1.i386.rpm
Purpose:
When you need to install the package directly through Internet FTP, the company's LAN has restrictions and you need to use an FTP proxy to access FTP, you should use this parameter
-- Ftpport <port>
Usage reference:
Rpm-I -- ftpport <port> ftp://ftp.gnomovision.com/pub/rpms/...-1.0-1.i386.rpm
Purpose:
When you need to specify a specific port number, use
How can I query the packet information provided by Red Hat?
First install an RPM package:
Rpm-IVH rpmdb-redhat-version.i386.rpm
This package is an RPM package that is attached to the RedHat system during production. You can use this package to check which package provides a specific file. This can solve some packet dependency problems.
For example, if an error occurs when you install a package and libx11.so. 6 is missing, but you do not know which package provides this file, you can do this:
Rpm -- redhatprovides libx11.so. 6
-- Oldpackage
Usage reference:
Rpm-u -- oldpackage packagename-oldversion.rpm
Purpose:
After a higher version of a package is installed, is there a problem with this version? Would you prefer to go back to a lower version? No problem. You can "Upgrade" to a lower version.
Can I query more swimming information in RPM? So we should fully explore more parameters. It's very powerfull!
-- Whatprovides
Usage reference:
Rpm-Q -- whatprovides/etc/httpd
Purpose:
Query a file, a directory, and a module.
-- Whatrequires
Usage reference:
Rpm-Q -- whatrequires module-Info
Purpose:
Query a file, a directory, and a module.
-G
Usage reference:
Rpm-QG Base
Purpose:
Query packages in a group
-D
Usage reference:
Rpm-qdcf/sbin/dump
Purpose:
Query all associated documents installed on the system in the package to which a command belongs. If you encounter a command that does not know what it is, you can find a reference document for it, this command is useful.
-- Dump
Usage reference:
Rpm-QL -- dump sendmail
Purpose:
Want to know all the situations after this package is installed? Including all file sizes? Directory location? The last modification time of all files? Owner of all files? Group ?.... You can use this parameter.
-- Scripts
Usage reference:
Rpm-Q -- scripts xfree86
Purpose:
Want to see what needs to be done before RPM installs a package? What should I do after installation? Use this parameter
Some special examples.
-Qcf
Usage reference:
Rpm-qcf/bin/bash
Purpose:
Used to obtain the configuration file and its location of a package
-Qpil
Usage reference:
Rpm-qpil nmap-3.00-4.i386.rpm
Purpose:
View information about an uninstalled RPM package