One Day One GNU/Linux Command
=============================

rpm -- RedHat Package Manager

Summary:

RPM is a RedHat Package Manager, which can be used to build, install,
query, verify, update, and erase individual software packages.

A package consists of an archive of files and meta-data used to
install and erase the archive files. The meta-data includes helper
scripts, file attributes, and descriptive information about the
package.

Packages come in two varieties: binary packages, used to encapsulate
software to be installed, and source packages, containing the source
code and recipe necessary to produce binary packages.

Examples:

$ rpm -qa -- List all installed RPMs.

$ rpm -qf /usr/bin/gcc -- Show which package installed this file.

$ rpm -qi -filesbypkg gcc-3.2.2-5 -- Show the information and list of 
                                     files from this package

$ rpm -qR gcc-3.2.2-5 -- Show the dependency of this package.

$ rpm -q gcc --qf "%-30{NAME} %10{SIZE} %{DISTRIBUTION}\n" -- Show 
                   selected info tags of the package installed gcc.

$ rpm --querytags -- Show all supported TAGs.

$ rpm -ivh new.rpm -- Install the new RPM. (v - Verbose, h- Show 
                      Progress bar).

$ rpm -U latest.rpm -- Update an Installed RPM.

$ rpm -F latest.rpm -- Freshen (Update only if installed).

$ rpm -e Package-Name -- Remove a package.

Read: man rpm

HTH :)
--
Bharathi S

_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to