RPM

rpm – RedHat Package Manager. Use for quering, verifying, installing, upgrading, and removing packages. Packages come in two varieties: binary and source code.

Querying packages:
rpm -q [select-options] [query-options]
Example:
rpm -q httpd #displays the samba version.
Output is something like: httpd-2.2.15-x.xxx…
or
rpm -qi httpd # displays detail info of httpd.
[elect-options]
-a # query all installed packages
-f # query package owning File
-p Package_File # query an uninstalled package
[query-options]
-l # list files in package.
-c # list only configuration files.
-d # list only documentation files.
-i # display package information.

Verifying packages:
rpm -V [select-options] [verify-options]

Installing packages:
rpm -i [install-options] Package_File

Upgrading packages:
rpm -U [install-options] Package_File

Rmoving packages:
rpm -e Package_File

Examples of Package_Files:
httpd – apache web server.
samba – file sharing between Windows and Unix.