Linux BASIC Commands--rpm Package management tool

Source: Internet
Author: User

What is RPM?

RPM is a package format with a file extension of ". RPM", and its management mechanism was first suggested by Red Hat, and later as the version was upgraded to incorporate more outstanding features, it became the accepted package management standard in many Linu distributions.


Why do you use it?

The RPM Package Manager makes detailed records of all kinds of. RPM packages installed, uninstalled, and upgraded on Linux systems by establishing a unified file database that automatically analyzes the dependencies between packages and keeps the applications running in a coordinated and orderly overall environment.


WHERE? Where to use?

Many Linux mainstream software has a. RPM package that can be installed using this method.



How? Use the method.


One, query rpm package information

1. Query the installed RPM package information (to install)

    • -Q: Query whether a known package has been installed

    • -QA: Displays a list of all software installed in RPM on the current system

    • -qi: View the name, version, license Agreement, purpose description, etc. of the specified package

    • -QL: Displays all directories installed on the current system for the specified package

    • -QF: To see which package is installed by the specified file or directory


Second, query the RPM package file for information (not installed)

    • -qpi: View the name, version, license Agreement, purpose description of the specified package

    • -QPL: View the installation directory, file list for the specified package

      Note: The path to the two package files above is used as a parameter


Third, install, upgrade, uninstall RPM package

    • -I: Install a new RPM package in the current system

    • -E: Uninstalling the package with the specified name

    • -U: Check and upgrade the specified package, if it is not installed, the package will be installed automatically

    • -F: Check and update the specified package, if the package is not installed, discard the installation

    • --force: Forcing the installation of a specified package

    • --nodeps: Forcing the uninstallation of the specified package

    • -H: Show Progress with "#" symbols when installing or upgrading

    • -V: Displays detailed information during package installation


Iv. Maintenance of RPM database

1. Rebuild RPM Database

Use command: RPM--REBUILDDB or RPM--INITDB


2, import the public key

Use command: RPM--import Public key file path


This article is from the "New Start" blog, so be sure to keep this source http://yuanshuai.blog.51cto.com/10539781/1746177

Linux BASIC Commands--rpm Package management tool

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.