RPM Execution Installation package
Binary packages (binary) and source code packages (sources) are two types. Binary packages can be installed directly 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 name.
Common Command combinations:
-IVH: Installation shows installation progress--install--verbose--hash
-UVH: Upgrade package--update;
-QPL: Lists the file information in the RPM package [Query packages list];
-QPI: Lists the description information for RPM packages [Query Package Install pack (s)];
-QF: Find which rpm package the specified file belongs to [Query file];
-va: Check all RPM packages to find the missing files [View Lost];
-E: Remove Package
Rpm-q Samba//query program is installed
RPM-IVH/MEDIA/CDROM/REDHAT/RPMS/SAMBA-3.0.10-1.4E.I386.RPM//install by Path and show progress
RPM-IVH--relocate/=/opt/gaim gaim-1.3.0-1.fc4.i386.rpm//Specify 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//new version degraded to old version
Rpm-qa | grep httpd #[Search Specifies whether RPM packages are installed]--all search *httpd*
RPM-QL httpd #[Search rpm Package]--list All files installation directory
Rpm-qpi linux-1.4-6.i368.rpm #[View RPM Packages]--query--package--install Package Information
RPM-QPF linux-1.4-6.i368.rpm #[View RPM Package]--file
RPM-QPR file.rpm #[View Package] Dependencies
Rpm2cpio file.rpm |cpio-div #[extract file]
RPM-IVH file.rpm #[Installing the new Rpm]--install--verbose--hash
RPM-IVH http://mirrors.kernel.org/fedora/core/4/i386/os/Fedora/RPMS/gaim-1.3.0-1.fc4.i386.rpm
RPM-UVH file.rpm #[Upgrade a Rpm]--upgrade
Rpm-e file.rpm #[Delete an RPM package]--erase
Common parameters:
Install/upgrade/erase options:
-I,--install install package (s)
-V,--verbose provide more detailed output
-H,--hash print hash marks as package installs (good with-v)
-E,--erase Erase (Uninstall) package
-U,--upgrade=<packagefile>+ upgrade package (s)
--replacepkge Install packages Regardless of whether they have been installed
--test installation test, not actually installed
--nodeps ignoring dependencies of packages forcibly installed
--force ignoring package and file conflicts
query options (With-q or--query):
-A,--all query/verify All Packages
-P,--package query/verify A package file
-L,- -list list files in package
-D,--docfiles List all documentation files
-F, --file query/verify Package (s) owning file
RPM Source Code Packaging installation
. src.rpm end of the file, these files are packaged by the software source code, the user to install such RPM packages, must use the command:
RPM--recompile vim-4.6-4.src.rpm # This command will unpack and compile the source code and install it if the user uses the command:
RPM--rebuild vim-4.6-4.src.rpm # After the installation is complete, the compiled executable is also repackaged as a i386.rpm RPM package.
[Email protected] src]# RPM-IVH awstats-6.8-1.noarch.rpm
error:failed dependencies:
Perl (lwp::useragent) is needed by Awstats-6.8-1.noarch
[Email protected] src]#
Files using the RPM attribute dependency suite
[Email protected] src]# RPM-QPR awstats-6.8-1.noarch.rpm
/bin/sh
/usr/bin/perl
Config (awstats) = 6.8-1
Perl >= 0:5.005
Perl (Lwp::useragent)
Perl (POSIX)
Perl (Socket)
Perl (time::local)
Perl (Strict)
Perl (VARs)
Rpmlib (compressedfilenames) <= 3.0.4-1
Rpmlib (payloadfileshaveprefix) <= 4.0-1
This article is from "I am Back" blog, please be sure to keep this source http://12348890.blog.51cto.com/12338890/1983729
Linux RPM Command Parameters use detailed