Summary of RPM Package Installation & query & uninstallation commands in Linux

Source: Internet
Author: User
In Linux, the RPM Package Installation & amp; query & amp; uninstall command has been using ubuntu before, and the installation and uninstall software is basically easy to use apt-get, in addition, software dependencies encountered during the process will automatically help us handle them, similar to silly installation. In addition, in Linux, almost... in Linux, the RPM Package Installation & query & uninstallation command has been using ubuntu. the installation and uninstallation software basically uses apt-get, which is very simple, in addition, software dependencies encountered during the process will automatically help us handle them, similar to silly installation. In addition, in Linux, almost all software can be installed, uninstalled, and managed through RPM. RPM is called Redhat Package Manager. it is a software developed by Redhat to manage software packages in Linux. During Linux installation, almost all modules except several core modules are installed through RPM. RPM has five operation modes: installation, uninstallation, upgrade, query, and verification. Run the "RPM-I" command to install www.2cto.com rpm. the file name of the package to be installed is as follows: rpm-I example. rpm installation example. rpm Package; rpm-iv example. rpm installation example. the rpm Package displays the file information that is being installed during the installation process. rpm-ivh example. rpm installation example. the rpm Package displays the information about the files being installed and the installation progress. run the RPM command: rpm-q... Www.2cto.com additional query command: a queries all installed packages. the following two additional commands are used to query the information of the installation package. I displays the information of the installation package; l display the directories in which all files in the installation package are installed; s shows the status of all files in the installation version and the directories to which files are installed; the following two additional commands are used to specify whether the installation package or the installed file needs to be queried; p queries information about the installation package; www.2cto.com f queries information about the installed file; example: run rpm-qa | grep tomcat4 to check whether Tomcat 4 is installed and rpm-qip example. run rpm to view example. rpm installation package information; rpm-qif/bin/df view the information of the installation package where the/bin/df file is located; run the rpm-qlf/bin/df command to check which Directory the files in the installation package where the/bin/df file is located are installed. run the RPM uninstall command: Before package installation, you usually need to use rpm-q... Command to find the name of the installation package to be uninstalled. For example, run the command "rpm-e tomcat4 uninstall tomcat4 software package RPM upgrade operation www.2cto.com": the package to be upgraded by rpm-U is as follows: rpm-Uvh example. rpm upgrade example. rpm software package RPM verification operation command: an example of the package to be verified by rpm-V is as follows: rpm-Vf/etc/tomcat4/tomcat4.conf 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, and T indicates that the file date has been modified. For more verification information, see The rpm Help File: other additional commands of man rpm RPM-force operations such as force installation and deletion; -- requires: displays the dependency of the package. -- nodeps ignores the dependency and continues the operation;
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.