Defindit Docs and Howto Home

This page last modified: Aug 05 2005
title:RPM use notes.

locate readahead
rpm -qi --whatprovides /etc/rc.d/init.d/readahead

rpm -q --whatprovides /usr/lib/
rpm -qpliv packages/postgresql-libs-7.3.2-4.i386.rpm
rpm -qlv postgresql-libs-7.3.2-1PGDG
rpm -qa | grep post

rpm -i source_package_file
cd /usr/src/redhat/SPECS
rpmbuild -bb spec_file

# rpm2cpio logrotate-1.0-1.i386.rpm | cpio -t
14 blocks

# rpm2cpio logrotate-1.0-1.i386.rpm |cpio -ivd usr/man/man8/logrotate.8
14 blocks

[mst3k@example readme_files]$ locate mdmonitor
[mst3k@example readme_files]$ rpm -qi --whatprovides /etc/rc.d/init.d/mdmonitor
Name        : mdadm                        Relocations: (not relocatable)
Version     : 1.6.0                             Vendor: Red Hat, Inc.
Release     : 2                             Build Date: Mon Oct  4 17:15:34 2004
Install Date: Mon Mar 28 14:37:49 2005      Build Host:
Group       : System Environment/Base       Source RPM: mdadm-1.6.0-2.src.rpm
Size        : 155863                           License: GPL
Signature   : DSA/SHA1, Wed Oct 20 13:16:58 2004, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <>
URL         :
Summary     : mdadm controls Linux md devices (software RAID arrays)
Description :
mdadm is used to create, manage, and monitor Linux MD (software RAID)
devices.  As such, it provides similar functionality to the raidtools
package.  However, mdadm is a single program, and it can perform
almost all functions without a configuration file, though a configuration
file can be used to help with some common tasks.
[mst3k@example readme_files]$