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.