Defindit Docs and Howto Home

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

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



rpm -q --whatprovides /usr/lib/libpq.so.2
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
usr/man/man8/logrotate.8
usr/sbin/logrotate
14 blocks
#


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




[mst3k@example readme_files]$ locate mdmonitor
/etc/rc.d/rc5.d/K85mdmonitor
/etc/rc.d/rc1.d/K99mdmonitor
/etc/rc.d/rc0.d/K99mdmonitor
/etc/rc.d/rc4.d/S99mdmonitor
/etc/rc.d/init.d/mdmonitor
/etc/rc.d/rc3.d/S99mdmonitor
/etc/rc.d/rc2.d/S99mdmonitor
/etc/rc.d/rc6.d/K99mdmonitor
[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: tweety.build.redhat.com
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. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.cse.unsw.edu.au/~neilb/source/mdadm/
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]$