Installation and uninstallation of RPM software packages under Linux

Source: Internet
Author: User

Under the Linux operating system, almost all of the software is installed, uninstalled and managed through RPM. RPM is all called the Redhat Package Manager, and is a software proposed by Redhat Corporation to manage packages under Linux. Linux installation ...


Under the Linux operating system, almost all of the software is installed, uninstalled and managed through RPM. RPM is all called the Redhat Package Manager, and is a software proposed by Redhat Corporation to manage packages under Linux. Linux installation, in addition to a few core modules, almost all the remaining modules are installed through the RPM. RPM has five modes of operation: Install, uninstall, upgrade, query and verify.

RPM Installation Action

Command:

rpm-i package file name that needs to be installed

Examples are as follows:

rpm-i example.rpm install example.rpm package;

Rpm-iv example.rpm Install the EXAMPLE.RPM package and display the file information that is being installed during the installation process;

RPM-IVH example.rpm Install the EXAMPLE.RPM package and display the installed file information and installation progress during the installation process;

RPM Query Operations

Command:

Rpm-q ... ..

Additional query commands:

a query all installed packages The following two additional commands are used to query the installation package for information;

I displays information about the installation package;

L Displays the directories in which all the files in the installation package are installed;

s Displays the status of all files in the installation version and which directories are installed; The following two additional commands are used to specify whether the installation package or the installed file needs to be queried;

P The information of the installation package is queried;

F the query is the installation of a file information;

Examples are as follows:

Rpm-qa | grep tomcat4 See if TOMCAT4 is installed;

RPM-QIP example.rpm View information about the example.rpm installation package;

RPM-QIF/BIN/DF View information about the installation package where the/bin/df file is located;

RPM-QLF/BIN/DF See which directory each file in the installation package for the/BIN/DF file is installed in;

RPM Uninstall Operation

Command:

rpm-e installation packages that need to be uninstalled

Before uninstalling, it is usually necessary to use the rpm-q ... command to isolate the name of the installation package that needs to be uninstalled.

Examples are as follows:

rpm-e tomcat4 uninstalling the TOMCAT4 package

RPM Upgrade Action

Command:

Rpm-u packages that need to be upgraded

Examples are as follows:

RPM-UVH example.rpm Upgrading the EXAMPLE.RPM package

RPM Validation Actions

Command:

rpm-v packages that need to be validated

Examples are as follows:

Rpm-vf/etc/tomcat4/tomcat4.conf

The output information is similar to the following:

S.5 .... T c/etc/tomcat4/tomcat4.conf

Where S means that the file size has been modified and T indicates that the file date has been modified. For more information, please refer to the RPM Help file: Man rpm

RPM Additional commands for

--force mandatory operations such as forced installation and deletion;

--requires shows the dependencies of the package;

--nodeps ignore dependencies and continue operations;


This article is from the "canvas shoes can walk the cat step" blog, please be sure to keep this source http://9409270.blog.51cto.com/9399270/1706104

Installation and uninstallation of RPM software packages under Linux

Related Article

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.