RPM is the RedhatPackageManager, that is, the redhat Package Manager. rpm is a powerful package manager that allows you to create, install, query, modify, upgrade, and uninstall software packages. A package contains the file architecture, package information, name, version number, and package description.
For more details, refer to the rpm manual on your system.
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 |