RPM Command Manual This article comes from: http: //www.chinaunix.net [Linux] version Author: wind521 (2002-05-20 06:02:01)
First, install the command format: rpm -i (or --install) Options file1.rpm ... filen.rpm parameter: file1.rpm ... filen.rpm will be installed with the RPM package file name details: -H ( Or --hash) Output the Hash mark (`` # '') - Test is only tested for the installation when installing, and does not actually install. --Percent outputs the scheduled progress in the form of a percentage. --ExCludedocs Do not install document files in the package - Remnocs to reinstall the installed package - Replacing files belonging to other packages - AllCeFiles Replace the Conflict for other packages - AllCE ignore packages and files --Noscripts Do not run pre-installation and post-installation scripts --prefix Install the package to the structure of the packet to the path of the Path> - Ignorers does not check the operating system of the package running the package - Ignoreos Nodeps does not check dependency - FTPPROXY Use as FTP proxy - FTPPort Specify FTP port number General Option -V Display Additional Information - VV Display Debug Information --root < PATH> Let RPM use the path specified by as "root directory", so pre-installer and post-installations are installed in this directory --Rcfile Set the rpmrc file as --dbpath Set the path to the RPM data inventory is II. Delete command format: rpm -e (or --rase) Options Pkg1 ... PKGN parameter Pkg1 ... PKGN: Package to delete Detailed option - Test Just perform the deleted test - Noscripts Do not run the pre-installation and post-installation script - Nodeps does not check the dependency universal option -vv display debugging information --root Let RPM use the path to "specified by" root " Directory, such pre-installation programs and post-installations are installed in this directory --RcFile Setting RPMRC files for --dbpath Setting RPM data inventory location The path is Third, upgrade Command format rpm -u (or --upgrade) Options file1.rpm ... filen.rpm Parameters file1.rpm ... Filen.rpm package name detailed options - h ( OR --hash) When the Hash mark (`` # '') --OldPackage allows "Upgrade" to an old version --Test Test --ExCludedocs Do not install document file in the package - Includedocs installation Document - ReplacingPKGS Forced Reset Installed Package - ReplanationFiles Replace files belonging to other packages --force ignores the conflict of component ignore packages and files --Percent outputs the scheduled progress in the percentage form.
--Noscripts Do not run pre-installation and post-installation scripts --PREFIX Install the package to the structure of the packet to the path of - Ignoreos does not check the software package operation System - NodePs Does Relationship - FTPPROY Use as FTP proxy - FTPPort Specify FTP port number to General Option -V Display Additional Information - VV Display Debugging Information - -root Let rpm use the path to the as "root directory" so that the pre-installer and the post installer are installed in this directory --Rcfile Set the rpmrc file as DBPATH Set the path where RPM data inventory is in four, query command format: rpm -q (or --query) Options parameter: pkg1 ... pkgn: Query installed package detailed option -p < File> (or `` - '') Query package file - F Query It belongs to which package -a query all installed packages --whatProvides query provides function Software Pack-Group> Software Packages belonging to group --WhatRequires Query all Package Information options that require feature Display package full ID -I display package Summary Information -L Display Package File List-C Display Profile List -D Display Document File List - Size File List in Package and Displays Status of Each File - Scripts Display Installation, Uninstall, Check Scripts - QueryFormat (OR --QF) Displays query information in the user-specified manner - DUMP Displays all verified information for each file - the functionality required for the Provides display package --Rquires (OR) display package required Features Universal Options -v Display Additional Information - VV Display Debug Information - ROOT Let RPM Make the path to the as "root directory", so pre-installed programs and post-installations are installed in this directory --RcFile Setting RPMRC files for --dbpath Setting RPM data The path where the inventory is located, 5. Check the installed package command format: rpm -v (or --verify, or -y) Options parameter pkg1 ... pkgn will check the software package option -p verify against package file -f Verify Software Pack -A Verify check all packages - Group> Verify all software belonging to group Package Detailed Options - Noscripts Does Not Run Checkline - NodePs Does Not Check Dependency - NOFILES Does Not Check File Property Universal Options - VVV Display Debug Information - ROOT