In Fedora, rpm is originally defined as RedHatPackageManager, and its definition in Chinese is RPM Software Package Manager. It is a packaging and Installation tool used to download packages from the Internet. It is included in some Linux distributions. It generates files with. RPM extensions, similar to Dpkg. RPM packages include Binary, Source, and Delta packages. The binary package can be directly installed on the computer, and the source code package will be automatically compiled and installed by RPM. Source code package
The rpm in Fedora is originally defined as RedHat Package Manager,
The RPM package manager is used to package and install packages downloaded from the Internet. It is included in some Linux distributions. It generates files with. RPM extensions, similar to Dpkg.
RPM packages include Binary, Source, and Delta packages. The binary package can be directly installed on the computer, and the source code package will be automatically compiled and installed by RPM. Source code packages often use src. rpm as the suffix.
The RPM file is the easiest to install in Linux, for example:
Rpm ixv-3.10a-13.i386.rpm
The following is a brief description of some of its parameters:
Rpm-e: uninstall the specified Software Package
Rpm-U: Upgrade the specified Software Package (if the specified software package does not exist in the system, the execution process is equivalent to the installation)
Rpm-a: Query all installed software packages
Rpm-f: Query software packages containing files
Rpm-p: query the packages whose package file is package file.
Rpm-s: displays software packages containing files
Rpm-v: Verify the Software Package
Rpm-q: Check whether the software package is installed.
Rpm-qa: Query and display detailed information about installed software packages in the system
Rpm-qi: queries details of a specified software package.
Rpm-ql: queries the list of files included in a specified software package.
Rpm-qf: Specifies the software package to which the file belongs.
Rpm-qpi: rpm installation package file details
Rpm-qpl: list of files included in the rpm Software Package
Rpm-I: Install the specified software package to the current linux system.
Rpm-ivh: displays detailed installation information when installing the specified software package.
Rpm-force: force install software package
Detailed introduction to RPM usage parameters
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 FTP **
-- 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 FTP **
-- 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 # Add grep Filter
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.