# Rpm-ivh
2. Upgrade a package
# Rpm-Uvh
3. Remove a package
# Rpm-e
4. Installation Parameters
- Force even if the cover package of documents belonging to others forced to install
- Nodeps if the RPM package installation depends on other packages, even if no other packages installed, but also to force installation.
5. Check whether a package is installed
# Rpm-q
6. Get the information package to be installed
# Rpm-qi
7. Out of the package in which files
# Rpm-ql
8. Listed on a file server to which they belong RPM package
# Rpm-qf
9. Can be integrated with the use of several parameters
# Rpm-qil
10. Lists all installed rpm package
# Rpm-qa
11. Listed are not installed into the system an RPM package file which contains files?
# Rpm-qilp
<
First, install the
Command format:
rpm-i (or - install) options file1.rpm ... fileN.rpm
Parameters:
file1.rpm ... fileN.rpm will be installed RPM package file name
More options:
-H (or - hash) hash mark (``#'') installed output
- Test only to test the installation, not the actual installation.
- Percent in the form of output as a percentage of the progress of installation.
- Excludedocs not install packages in the document file
- Includedocs installation documentation
- Replacepkgs forced to re-install already installed package
- Replacefiles replacement documents belonging to other packages
- Force Ignore package and file conflicts
- Noscripts not run pre-installation and post-installation script
- Prefix the package installed by the specified path
- Ignorearch do not check the structure of package
- Ignoreos run the operating system does not check package
- Nodeps do not check the dependency relations
- Ftpproxy used as a FTP proxy
- Ftpport FTP port number specified
General Options
-V Display additional information
-Vv display debugging information
- Root for the specified path as the RPM will be the "root directory", so that after pre-installation procedures and safety
Installation program will install to this directory
- Rcfile file set rpmrc
- Dbpath RPM information to set the path where inventory
Second, delete
Command format:
rpm-e (or - erase) options pkg1 ... pkgN
Parameter
pkg1 ... pkgN: To remove the package
More options
- Test only delete the test implementation
- Noscripts not run pre-installation and post-installation script
- Nodeps Do not check dependencies
General Options
-Vv display debugging information
- Root for the specified path as the RPM will be the "root directory", so pre-and post-installation setup
Program will be installed to this directory
- Rcfile file set rpmrc
- Dbpath RPM information to set the path where inventory
Third, upgrade
Command format
rpm-U (or - upgrade) options file1.rpm ... fileN.rpm
Parameter
file1.rpm ... fileN.rpm package name
More options
-H (or - hash) hash mark (``#'') installed output
- Oldpackage allow the "upgrade" to an old version of the
- Test only upgrade testing
- Excludedocs not install packages in the document file
- Includedocs installation documentation
- Replacepkgs forced to re-install already installed package
- Replacefiles replacement documents belonging to other packages
- Force Ignore package and file conflicts
- Percent in the form of output as a percentage of the progress of installation.
- Noscripts not run pre-installation and post-installation script
- Prefix the package installed by the specified path
- Ignorearch do not check the structure of package
- Ignoreos run the operating system does not check package
- Nodeps do not check the dependency relations
- Ftpproxy used as a FTP proxy
- Ftpport FTP port number specified
General Options
-V Display additional information
-Vv display debugging information
- Root for the specified path as the RPM will be the "root directory", so pre-and post-installation setup program will install to this directory
- Rcfile file set rpmrc
- Dbpath RPM information to set the path where inventory
4, the query
Command format:
rpm-q (or - query) options
Parameters:
pkg1 ... pkgN: check installed packages
More options
-P (or ``-'') check the file package
-F query belongs to which package
-A check of all installed packages
- Whatprovides query a feature of the package
-G queries the packages belonging to group
- Whatrequires check the package all the necessary functions
Information Options
Show all packages identification
-I display a summary of the information package
-L display list of files that the package
-C show a list of configuration files
-D displays the document file list
-S Display the package list of files and display the status of each file
- Scripts show install, uninstall, verify script
- Queryformat (or - qf) is displayed to the user specified query information
- Dump display each file all the parity information
- Provides display package provides the functionality
- Requires (or-R) shows the functionality required package
General Options
-V Display additional information
-Vv display debugging information
- Root for the specified path as the RPM will be the "root directory", so pre-and post-installation setup program will install to this directory
- Rcfile file set rpmrc
- Dbpath RPM information to set the path where inventory
5, check the installed package
Command format:
rpm-V (or - verify, or-y) options
Parameter
pkg1 ... pkgN going to check the package name
Package Options
-P Verify against package file
-F check their packages
-A Verify check all packages
-G checking all packages belonging to group
More options
- Noscripts script does not run check
- Nodeps do not check dependencies
- Nofiles not verify file attributes
General Options
-V Display additional information
-Vv display debugging information
- Root for the specified path as the RPM will be the "root directory", so pre-and post-installation setup program will install to this directory
- Rcfile file set rpmrc
- Dbpath RPM information to set the path where inventory
6, check the paper package
Syntax:
rpm-K (or - checksig) options file1.rpm ... fileN.rpm
Parameters:
file1.rpm ... fileN.rpm package file name
Checksig - more options
- Nopgp not verify PGP signature
General Options
-V Display additional information
-Vv display debugging information
- Rcfile file set rpmrc
7, other RPM options
- Rebuilddb rebuilding RPM database
- Initdb to create a new RPM database
- Quiet reduce output as much as possible
- Help Show help file
- Version display the current version of RPM
没有评论:
发表评论