Installation and uninstall of RPM commands for Linux RPM packages __linux

Source: Internet
Author: User

Under the Linux operating system, almost all software is installed, uninstalled and managed by RPM. The RPM is all called Redhat Package Manager, which is proposed by the Redhat company to manage software packages under Linux. When Linux is installed, almost all other modules are installed through RPM, except for a few core modules. RPM has five modes of operation: Installation, uninstall, upgrade, query, and authentication.


Turn from: http://os.51cto.com/art/201001/177866.htm


RPM Installation operation

Command:

Rpm-i The package file name that needs to be installed

Examples are as follows:

Rpm-i example.rpm installation example.rpm package;

Rpm-iv example.rpm installs the example.rpm package and displays the file information that is being installed during the installation process;

RPM-IVH example.rpm installs the example.rpm package and displays the file information and installation progress during installation;

RPM Query Operations

Command:

Rpm-q ...

Additional query commands:

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

I display the installation package information;

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

s displays all file status 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 should be queried;

P Query is to install the package information;

F query is installed a file information;

Examples are as follows:

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

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

RPM-QIF/BIN/DF View the installation package information of the/BIN/DF file;

RPM-QLF/BIN/DF view the files in the installation package where the/BIN/DF files are installed in each directory;

RPM Uninstall operation

Command:

RPM-E installation packages that need to be uninstalled

Before uninstalling, you usually need to use the rpm-q ... command to identify the installation package name that needs to be uninstalled.

Examples are as follows:

RPM-E TOMCAT4 Uninstall TOMCAT4 Package

RPM Upgrade operation

Command:

Rpm-u packages that need to be upgraded

Examples are as follows:

RPM-UVH example.rpm Upgrade EXAMPLE.RPM Package

RPM Verification operation

Command:

Rpm-v the package that needs 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 indicates that the file size has been modified, T indicates that the file date has been modified. For more information on verification, please refer to the RPM Help file: Man rpm

Other additional commands for RPM

--force force operation such as mandatory installation and deletion;

--requires shows the dependencies of the package;--nodeps ignores dependencies and continues to operate;

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.