Redhat Linux --- rpm command details

Source: Internet
Author: User

What is rpm?

Rpm is an abbreviation of RPM package manager. It was first proposed by RedHat. Later, with the continuous development of rpm and the addition of many features, rpm has gradually become a recognized software package management standard in linux. Vendors that support this format include RedHat linux, SUSE linux, and Mandriva linux.

The rpm command is very powerful. What functions does the rpm command have?

1. query the rpm package information installed in linux.

2. query the rpm package installation file.

3. Install the rpm package to the current linux System

4. Uninstall the installed rpm package from linux

5. Upgrade the rpm package of the current linux System

(1) # Run the rpm-qa command to check all the rpm packages installed in the system.

(2) # The rpm-q rpm package name is used to check whether the software package is installed in the system. If the software package is installed, the system displays the complete package name. If the software package is not installed, the system prompts "package bas is not installed ".

(3) # The rpm-qi rpm package name is used to view the complete information of the installed rpm package in the system, including the package version, installation time, and size.

(4) # The rpm-ql rpm package name is used to check where the software package is installed.

(5) # The rpm-qf file name is used to view the rpm package installed on a file.

(6) # rpm-qpi rpm package name and # rpm-qpl are used to view information about uninstalled packages. Note the differences between rpm and (4) and (5.

(7) # The rpm-ivh package name is used to install the rpm package. I indicates installation, v indicates visual installation, and h indicates the progress of installation.

(8) # The rpm -- force-irpm package is used to forcibly install the rpm package. The -- force parameter is used to install the dependency rpm package. However, we generally do not do this. A better way to solve the dependency is to use the # rpm-I command to install it together.

(9) # The rpm-e rpm package name is used to delete the rpm package. Rpm-e -- nodeps package name is used to delete dependent software packages. This command can delete all software packages that are dependent on the package.

(10) # The rpm-Urpm package name is used to upgrade the rpm package.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next Page

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.