Overview
A package and Installation tool for Internet downloads, which is included in someLinuxthe distribution version. It generates a. RPMthe file name extension. RPMis aRedhat Package Manager(Redhatpackage management tools). This file format, while playingRedhatbut its original design concept is open and now includesOpenLinux,S.U.S.E.as wellTurbo LinuxwaitLinuxdistributed versions are used. Can be regarded as a recognized industry standard.
the name format of the RPM package
apache-1.3.23-11.i386.rpm
-"Apache": Software name
-"1.3.23-11": Version number of the software, major version and this version
-"i386": is the hardware platform that the software runs
-"rpm": File extension, representing rpm package
RPM Common Commands
-Rpm‐qa: Check all rpm packages installed
-Rpm‐qa | More
-Rpm‐qa | grep X
-Rpm‐q Package name : Whether the query package is installed
-Rpm‐q xinetd
-Rpm‐q foo
-Rpm‐qi Package name : Query Package information
-Rpm‐qi File
-RPM‐QL Package name : Querying the files in the package
-RPM‐QL File
-RPM‐QL JDK
-RPM‐QF file full path name : The package to which the query file belongs
-RPM‐QF/ETC/PASSWD
-Rpm‐qf/root/install.log
-RPM‐QP Package file name : Information about the package is introduced to the package
-Rpm‐qp jdk-1_5_0-linux-i586.rpm
-Rpm‐qpi jdk-1_5_0-linux-i586.rpm
-RPM‐QPL jdk-1_5_0-linux-i586.rpm
Installing RPM Packages
RPM‐IVH RPM Package Full path name: Install package to current system
-I=install, installation
-V=verbose, hint, prompt message
-H=hash, progress bar
Delete RPM Package
Rpm‐e RPM Package name
"Case"rpm ‐e JDK
If other packages depend on the package you are uninstalling, an error message will be generated when uninstalling, such as:
"Case"rpm ‐e foo
Removing these packages would break dependencies:foo was needed by Bar-1.0-1
If you want RPM to ignore this error and continue uninstalling, use the ‐‐nodeps command-line option
"Case"rpm ‐e‐‐nodeps foo
Upgrade RPM Package
Rpm‐u RPM Package full path name
"Case"rpm ‐u cvs-1.11.2-10.i386.rpm
Linux under RPM package management