rpm — RedHat Package Manager

Author:

Creative Commons is the best and cheapest way to share your art, music
or knowledge. There are around 29 internationalized versions of CC.
The time has arrived for India to have its own Creative Commons.
URL: http://creativecommons.org/worldwide/overview
URL: http://www.techmag.biz/?q=node/81

One Day One Command
===================

rpm — RedHat Package Manager

Summary:

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

A package consists of an archive of files and meta-data used to

install & erase the archive files. The meta-data includes helper

scripts, file attributes, & descriptive information about the package.

Packages come in two varieties: binary packages, used to encapsulate

software to be installed, & source packages, containing the source

code & 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

Leave a Reply

Your email address will not be published. Required fields are marked *