The RPM Package Manager is one of the oldest software packages in Linux, and is currently the most popular package manager, and many distributions use RPM as the default package management software.
RPM Package Name format:
samba-client-3.0.33-3.7.el5.i386.rpm
Samba-client is the name of the package, and the 3.0.33 in 3.0.33-3.7 represents the major version number of the package, followed by 3.7 for the minor version number of the software release, and El5 for the red Hat Enterprise Linux 5 system. Fc6 for Fedora Core Linux 6 system; i386 means hardware platform; RPM means that this is an RPM package, and some packages end up with src.rpm, which means the package contains source code.
RPM Command Basic format:
RPM [OPTIONS ...] Q: Use Query mode A: query All packages I: Show details L: Show file List of package P: query specified package f: Query specified file package V: Show command execution H: Show progress information when installing package E: Uninstall the specified package U: Upgrade Package
To query installed software:
-Qsamba--grepssh-qi chkconfig
Querying files in a package
--QPL samba-client-3.0. 3.7. el5.i386.rpm# Use options P and I to view Samba--qpi samba-client-3.0. -3.7. el5.i386.rpm# using option F to specify the query/bin/-qf/bin/ls
Installing packages using the RPM command
Installing the RPM package requires the option I (long format to install, note the difference between the Software Information option info) and the package as a parameter.
-I cabextract-1.3-1-IVH cabextract-1.3-1. i386.rpm
Uninstalling a package using the RPM command
#使用选项e卸载软件包samba-e samba-client
Upgrading packages with the RPM command
#使用选项U升级软件bzip2-bzip2-libs-1.0. 3-4. e15_2.i386.rpm
RPM Package Management Command rpm