Common rpm commands 1. install a package # rpm-ivh2. upgrade a package # rpm-Uvh3. remove a package # rpm-e4. installation parameters -- force installation even if it overwrites files belonging to other packages -- nodeps if this RPM package installation depends on other packages, force installation even if other packages are not installed. 5. check whether a package is installed # rpm-q <rpm package name> 6. obtain the information of the installed package # rpm-qi <rpm package name> 7. list the files in this package # rpm-ql <rpm package name> 8. list the RPM packages of a file on the server # rpm-defaults 9. it can be used together with several parameters # rpm-qil <rpm package name> 10. list all installed rpm packages # rpm-qa11. list the files contained in an RPM package that has not been installed into the system? # Rpm-qilp <rpm package name> <> 1. Installation Command Format: rpm-I (or -- install) options file1.rpm... fileN. rpm parameter: file1.rpm... fileN. detailed file name option of the rpm package to be installed by RPM:-h (or -- hash) Output hash mark (''#'') during installation -- test only tests the installation, not actually installed. -- Percent: the installation progress is displayed as a percentage. -- Excludedocs does not install the document file in the software package -- includedocs installation documentation -- replacepkgs force reinstall installed software package -- replacefiles replace files belonging to other software packages -- force ignores conflicts between software packages and files -- noscripts does not run the pre-Installation and post-installation script -- prefix to install the software package to the specified path -- ignorearch does not verify the structure of the software package -- ignoreos does not check the operating system of the software package running -- nodeps does not check the dependency relationship -- ftpproxy is used as the FTP Proxy -- ftpport specifies the FTP port number as the general option-v displays additional information-vv displays debugging information-root asks RPM to use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of RPM data inventory to 2. DELETE Command Format: rpm-e (Or -- erase) options pkg1... pkgN parameter pkg1... pkgN: detailed options of the software package to be deleted -- test only executes the delete test -- noscripts does not run the pre-Installation and post-installation script programs -- nodeps does not check the dependency general options-vv displays debugging information -- root allows RPM use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to III. Upgrade Command Format rpm-U (or -- upgrade) options file1.rpm... fileN. rpm parameter file1.rpm... fileN. rpm software package name details option-h (or -- hash) Output hash mark (''#'') during installation (''#'') -- oldpackage allows "Upgrade" to an old version -- test only performs upgrade test -- ex Cludedocs document files not installed in the software package -- includedocs installation documentation -- replacepkgs force reinstall installed software package -- replacefiles replace files belonging to other software packages -- force ignore conflicts between software packages and files -- percent in percentage output the installation progress. -- Noscripts does not run the pre-Installation and post-installation scripts -- prefix installs the software package to the specified path -- ignorearch does not verify the structure of the software package -- ignoreos does not check the operating system of the software package -- nodeps does not check the dependency -- ftpproxy is used as the FTP Proxy -- ftpport specifies the FTP port number as the general option-v displays additional information-vv displays debugging information-root asks RPM to use the specified path as the "root directory "", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to 4. query command format: rpm-q (or -- query) options parameter: pkg1... pkgN: query the installed software package details option-p (or ''-'') query the file of the software package-f query which software package belongs-a query all installed software packages -- whatprovides query the software package that provides functionality-g query the software package that belongs to the group -- whatrequires query all required software packages information option show all the packages logo-I show package overview-l show package file list-c show configuration file list-d show document file list-s show package file list and displays the status of each file-scripts displays the installation, uninstallation, validation script-queryformat (or -- qf) display query information in the way specified by the user -- dump display all verified information for each file -- provides display functions provided by the software package -- requires (or-R) show the functions required by the software package general options-v show additional information-vv show debugging information-root ask RPM to use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to 5. Verify the Command Format of the installed software package: rpm-V (or -- verify, or-y) options parameter pkg1... pkgN package name package option to be verified-p Verify against package file-f Verify the package to which the package belongs-a Verify all package-g Verify all group package details option -- noscripts not run the validation script -- nodeps does not verify the dependency -- nofiles does not verify the file attributes common options-v displays additional information-vv displays debugging information-root allows RPM to make the specified path "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of RPM data inventory to 6. Verify the File Syntax in the software package: rpm-K (or -- checksig) options file1.rpm... fileN. rpm parameter: file1.rpm... fileN. rpm package file name Checksig -- detailed options -- nopgp does not verify PGP signature general options-v displays additional information-vv displays debugging information-rcfile sets rpmrc file to seven, other RPM options -- rebuilddb Reconstruction RPM database -- initdb creates a new RPM database -- quiet minimizes output -- help displays the help file -- version displays the current version of RPM