1 rpm, full name of RedHat package manager, was proposed by RedHat to manage software packages in Linux. 2 RPM command usage: 3 RPM installation operation: 4 rpm-I package file name to be installed 5 example: 6 rpm-I example. rpm installation example. RPM package 7 rpm-IV example. rpm installation example. RPM package, and the file information being installed is displayed during installation 8 rpm-IVH example. rpm installation example. the RPM package is displayed, and the file information and installation progress are displayed during the installation process. 9 10 rpm query operation: 11 rpm-Q... 12 additional query commands: 13 A query all installed packages 14 I display information about the installation package 15 l show all files in the installation package are installed under which directories 16 s show the status of all files in the installation version and what are installed 17 p in the directory specifies to query information about the installation package 18 F specify to query information about a file that has been installed 19 example: 20 rpm-Qa | grep tomcat7 check whether tomcat7 is installed 21 rpm-QIP example. run RPM to view example. rpm installation package information 22 rpm-QIF/bin/DF view/bin/DF file installation package information 23 rpm-qlf/bin/DF view each of the packages in the/bin/DF file directory to which files are installed: 26 rpm-e installation package to be uninstalled 27 usually use rpm-Q... command to find out the installation package name 28 example: 29 rpm-e tomcat7 uninstall tomcat7 package 30 31 RPM upgrade operation: 32 rpm-u package to be upgraded 33 example: 34 rpm-uvh example. rpm upgrade example. RPM package 35 36 RPM verification operation: 37 rpm-V package to be verified 38 example: 39 rpm-VF/etc/tomcat7/tomcat7.conf40 41 RPM additional commands: 42 -- Force operations such as force installation and deletion 43 -- requires displays the dependency of the package 44 -- nodeps ignores the dependency and continues the operation
Rpm command details