Use of RPM and RPM commands in Linux

Source: Internet
Author: User
Keywords linux rpm Package rpm command
Tags click course delete file how to install installation installation package

Installing and uninstalling software is a necessary operation during the course of any operating system we use. Linux has a package manager called RPM. It can be used to install, query, verify, delete, update the RPM format package. Usually the RPM format package file uses. rpm for the extension. Although the RPM package is a software installation package, it does not work like a double-click on the installation file in Windows. There is a command called RPM in Linux that can use a variety of parameters to complete the installation, query, checksum, deletion, and update of the RPM software package.

Let's take a look at how to install the RPM package using the rpm command. The specific format is: Rpm-i < file path >< filename >. Note case-sensitive, the-I parameter is to have the rpm command perform the RPM package files listed later in the installation. Now let's use the Linux version of Nero to demonstrate.

The position that is circled with the red line is the prompt information given after installation. After many other RPM packages are installed there is nothing. If the larger package installation takes a while, what do we do if we want to see the installation progress? We need two other parameters, the-V and-H. The-v parameter shows the true name of the RPM package, and you need to be aware that many cases are not file names. And we probably renamed the downloaded file to make it easier to remember, right? The-h parameter is used to display the installation progress. Now let's do the actual operation.

Those "#" numbers indicate progress, and when the subsequent percentage number goes to 100%, the installation is complete. And with the red line around the character is the name of the RPM package, is not the same as the filename?

Let's continue to learn how to update, or upgrade, the RPM package. That requires the-u parameter, which still needs to be case-sensitive. Update packages You should be aware that you can upgrade when a package with the same name has a new version. But is it OK if we use the same version to overwrite the installed software? Especially if the installed software is corrupted. In fact, we can use the-u parameter instead of-I parameter. Now let's take a look at the new installation of the RPM package using the-u parameter.

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.