Linux Commands: rpm

Source: Internet
Author: User

First, RPM introduction

RPM (Redhat Package Manager) Red Hat Pack Manager
Why install with RPM: CentOS can use the Yum tool for free, but Yum is not available by default when you pay for Redhat. So it's going to be installed in RPM.

RPM Package Structure:

1.BASH-4.3.1.TAR.XZ: Package Name-Major version number-minor version number-issue number
2.BASH-4.3.2-5.EL6.X86_64.RPM: Package Name-major version number. minor version number. The release number of the source program release number-RPM package. Host Platform. Cup schema (if write noarch means 32, 64-bit support)

Second, how to install the RPM package

Mount First:mount/dev/cdrom/mnt

Special cases when installing RPM packages:

For example, when we go to install Ypbind the prompt needs Yp-tools:

So, let's install Yptools, which also prompts you to Ypbind:

This shows that the two packages depend on each other, and the workaround: Install both packages at the same time

How to force the installation of RPM packages (this method is used to resolve dependencies, use caution):RPM–IVH--nodeps

Third, how to upgrade the RPM package

Iv. How to check the RPM package

1. Check the available RPM packages

2. Query the installed RPM package

V. How to unload the RPM package

Six, rpm command parameters

-QA Query all queries all RPM packages
-IVH Install Verbose hash Display installation Progress
-UVH update Verbose hash shows upgrade Progress
- e earse Uninstall
-QPL Query Package list to see what files need to be installed for a non-installed RPM pack
-QL Query Package list to see which files are installed by an installed RPM pack
-QPI Query Package Install to view information about a non-installed RPM pack
-qi Query Package Install to view information about an installed RPM pack
-qf Query file lists which rpm package a file belongs to
-va View lost check all RPM packages to find missing files

Linux Commands: rpm

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.