Rpm command Manual
I. Installation
Command Format:
Rpm-I (or -- install) Options file1.rpm... filen. rpm
Parameters:
File1.rpm... filen. RPM file name of the RPM package to be installed
Detailed options:
-H (or -- hash) outputs the hash mark (''#'') during installation (''#'')
-- Test only tests the installation and does not actually install it.
-- Percent: the installation progress is displayed as a percentage.
-- Excludedocs does not install the document files in the Software Package
-- Includedocs installation document
-- Replacepkgs force the installed software package to be reinstalled
-- Replacefiles: Replace the files of other software packages.
-- Force ignores conflicts between software packages and files
-- Noscripts does not run the pre-Installation and post-installation scripts
-- Prefix install the software package to the specified path
-- Ignorearch does not validate the structure of the software package
-- Ignoreos does not check the operating system of the software package.
-- Nodeps does not check Dependencies
-- Ftpproxy is used as an FTP Proxy
-- Ftpport specifies that the FTP port is
General options
-V: display additional information
-VV: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that the pre-installation program and post-Installation
Installation programs will be installed in this directory
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory
Ii. Delete
Command Format:
Rpm-E (or -- Erase) Options pkg1... pkgn
Parameters
Pkg1... pkgn: package to be deleted
Detailed options
-- Test: only delete the test.
-- Noscripts does not run the pre-Installation and post-installation script programs
-- Nodeps does not check Dependencies
General options
-VV: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that the pre-installation program and post-Installation
All programs are installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory
Iii. Upgrade
Command Format
Rpm-U (or -- upgrade) Options file1.rpm... filen. rpm
Parameters
File1.rpm... filen. RPM package name
Detailed options
-H (or -- hash) outputs the hash mark (''#'') during installation (''#'')
-- Oldpackage allows "Upgrade" to an old version
-- Test: only test the upgrade.
-- Excludedocs does not install the document files in the Software Package
-- Includedocs installation document
-- Replacepkgs force the installed software package to be reinstalled
-- Replacefiles: Replace the files of other software packages.
-- Force ignores conflicts between software packages and files
-- Percent: the installation progress is displayed as a percentage.
-- Noscripts does not run the pre-Installation and post-installation scripts
-- Prefix install the software package to the specified path
-- Ignorearch does not validate the structure of the software package
-- Ignoreos does not check the operating system of the software package.
-- Nodeps does not check Dependencies
-- Ftpproxy is used as an FTP Proxy
-- Ftpport specifies that the FTP port is
General options
-V: display additional information
-VV: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that both the pre-installation program and the post-installation program will be installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory
Iv. Query
Command Format:
Rpm-Q (or -- Query) Options
Parameters:
Pkg1... pkgn: Query installed software packages
Detailed options
-P (or ''-'') queries the file of the software package.
-F: query which software package belongs.
-A: Query all installed software packages.
-- Whatprovides: a software package that provides functions for query
-G: query the software packages of the group.
-- Whatrequires: Query all required software packages
Information options
Show all packages
-I: displays the summary of the software package.
-L display the file list in the Software Package
-C: display the configuration file list
-D: display the document file list
-S: displays the file list in the package and the status of each file.
-- Scripts displays scripts for installation, uninstallation, and validation
-- Queryformat (or -- qf) displays the query information in a user-specified manner.
-- Dump: displays all verified information for each file.
-- Provides: displays the functions provided by the software package.
-- Requires (or-R) shows the functions required by the Software Package
General options
-V: display additional information
-VV: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that both the pre-installation program and the post-installation program will be installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory
5. Verify installed software packages
Command Format:
Rpm-V (or -- verify, or-y) Options
Parameters
Pkg1... pkgn name of the software package to be verified
Package options
-P verify against package file
-F verify the Software Package
-A verify: verifies all software packages.
-G: verify all software packages belonging to the group
Detailed options
-- Noscripts does not run the validation script
-- Nodeps does not verify Dependencies
-- Nofiles does not verify file attributes
General options
-V: display additional information
-VV: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that both the pre-installation program and the post-installation program will be installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory
6. Verify the files in the Software Package
Syntax:
Rpm-K (or -- checksig) Options file1.rpm... filen. rpm
Parameters:
File1.rpm... filen. RPM package file name
Checksig -- detailed options
-- Nopgp does not verify the PGP Signature
General options
-V: display additional information
-VV: displays debugging information.
-- Rcfile sets the rpmrc file
VII. Other RPM options
-- Rebuilddb: rebuilding the RPM Database
-- Initdb creates a new RPM Database
-- Quiet: reduce output as much as possible
-- Help: display the Help File
-- Version: displays the current version of RPM.