Linux RPM Command Parameters use detailed

Source: Internet
Author: User

Linux RPM Command Parameters use detailed

SOURCE https://www.cnblogs.com/kakafra/p/3336020.html

Perform the following command to see all installed software names.
Rpm-qa
And then execute
RPM-QL Software Name
You can display the installation path of the software.

Copy the installation files directly to the directory only

RPM-QL Gflags-devel | Xargs TAR-CF-| (CD./temp; TAR-XVPF-)

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 combination:-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: Delete package Rpm-q Samba//Query program install 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 The relationship is not a real installation;
RPM-UVH--oldpackage gaim-1.3.0-1.fc4.i386.rpm//new version downgraded 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 files]rpm-ivh file.rpm #[Install new Rpm]--install--verbose--hash
Rpm-ivhhttp://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]--eraseCommon 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 ignores 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 source code of the software, the user to install such RPM package, you must use the command: RPM--recompile vim-4.6-4.src.rpm # This command will unpack the source code and compile, 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

Linux RPM Command Parameters use detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.