The RPM

  

rpm command for Linux common commands has many functions. Here we only show how to install and query the installed software with rpm. 1 The basic syntax for installing the rpm installation package is as follows: rpm -i rpm Package name For example: 1.rpm -i tomcat6.rpm This command will install the Tomcat software and configure the relevant system. 2 The basic syntax of upgrading the rpm upgrade package is as follows: rpm -U rpm Package name: 1.rpm – U tomcat4.rpm This command will upgrade the Tomcat software and configure the relevant system. 3, view the installed software Sometimes, know which packages have been installed in the system and their use is very useful, R P M query parameters can do this. To list all the packages that have been installed, you can use the following command: 1.rpm -qa You can use the grep command to specify the package name (or part of the name) as follows: 1.rpm -qa |  Grep 'tomcat' This command will list packages containing tomcat in the package name. In addition: To find out which package a particular file belongs to, you can type: 1.rpm -qf filename where filename is the name of the file you are about to find. To find out the functionality of an already installed package, use the following command: 1.rpm -qi packagename where packagename is the name of the package to find its purpose. 4, remove the installed software using RPM to remove the package is as simple as installing them. In most cases, the user only needs to enter the command: 1.rpm -e packagename where ackagename is the name of the package to be checked for deletion.

Copyright © Windows knowledge All Rights Reserved