The linux rpm command uses RPM as the RedHat Package Manager (RedHat Package management tool). Similar to the "Add/delete programs" in Windows, rpm executes the installation Package Binary Package and the Source code Package (Source). 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. Common command combination:-ivh: installation shows the installation progress -- install -- verbose -- hash-Uvh: upgrade package -- Update;-qpl: listing the file information in the RPM Package [Query Package list];-qpi: listing the description of the RPM package [Query Package install Package (s)];-qf: find the RPM package of the specified File [Query File];-Va: Check all RPM packages and find the missing File [View Lost];-e: delete package rpm-q samba // check if the program has rpm-ivh/media/cdrom/RedHat/RPMS/samba-3.0.10-1.4E.i386.rpm // install by path and display progress rpm-ivh -- relocate/= /opt/gaim gaim-1.3.0-1.fc4.i386.rpm // specify the installation directory rpm -Ivh -- test gaim-1.3.0-1.fc4.i386.rpm // used to check dependencies; not a real installation; rpm-Uvh -- oldpackage gaim-1.3.0-1.fc4.i386.rpm // The new version is downgraded to the old version rpm-qa | grep httpd # [search for whether the specified rpm package is installed] -- all search * httpd * rpm-ql httpd #[ search rpm packages] -- list all File Installation directories rpm-qpi Linux-1.4-6.i368.rpm # [view rpm packages] -- query -- package -- install package info rpm-qpf Linux-1.4-6.i368.rpm # [view rpm packages] -- filerpm -qpR file. rpm # [View package] dependency rpm2cpio file. rpm | cpio-div # [Extract files] rpm-ivh f Ile. rpm # [install new rpm] -- install -- verbose -- hashrpm-ivh rpm-Uvh file. rpm # [upgrade an rpm] -- upgraderpm-e file. rpm # [delete an rpm package] -- Common erase parameters: Install/Upgrade/Erase options:-I, -- install package (s)-v, -- verbose provide more detailed output-h, -- hash print hash marks as package instils (good with-v)-e, -- erase (uninstall) package-U, -- upgrade = <packagefile> + upgrade package (s) -- replacepkge If the software package has been installed, force install the software package -- test installation test, not actually installed -- nodeps ignores dependencies of software packages forcibly installed -- force ignores conflicts between software packages and files Query options (with-q or -- query):-, -- all query/verify all packages-p, -- package query/verify a package file-l, -- list files in package-d, -- docfiles list all documentation files-f, -- file query/verify package (s) owning file RPM source code package installation. src. rpm-end files that are packaged from the software's source code. to install such RPM packages, you must use the command: rpm -- recompile vim-4.6-4.s Rc. rpm # This command unpacks the source code and compiles and installs it if the user uses the command: rpm -- rebuild vim-4.6-4.src.rpm # After the installation is complete, the compiled executable files will be repackaged into an i386.rpm RPM package.