These programs were written by Kirk Bauer, unless otherwise indicated...

First of all, I am *NOT* responsible for anything bad that might happen
because of this program.  It doesn't do anything bad on my system, but
it is not my fault if it does something bad on your system.

These scripts make management of RPMs easier, I hope.

######################################################################
New in Version 1.5!

/usr/bin/rpm-rhupd:

written by Stig <stig@hackvan.com>... doesn't quite work yet...

######################################################################
New in Version 1.4!

/usr/bin/rpm-groups:
  
This is an excelent Perl script written by Jonathan Stigelman
<Stig@hackvan.com> that will give you a nice listing of RPMs sorted
by group along with their sizes!


######################################################################
New in Version 1.4!

/usr/bin/rpm-del-preserve:
  
This is a simple script that will allow you to delete an package without
actually deleting any of the files owned by that package.

You use it like this:
   rpm-del-preserve <packagename> [rpm options]

Where <packagename> is required and [rpm options] are
optional parameters to pass to RPM.  For example:

rpm-del-preserve packagename --nodeps -v ....

*Please note -- you will still see all the normal output from the
RPM -e command!  For example, if you already deleted half the files
that belong to a package, RPM is going to complain that it couldn't find
them to delete.  What this script does is back up any files that are still
on the hard drive and belong to a package, then delete the package, and then
restore the files that used to be there...


######################################################################

/usr/bin/rpm-findnonrpm:
Usage:
   ./rpm-findnonrpm --double: checks for files owned by more than one package.
   ./rpm-findnonrpm [-r] [--exclude "<dirname> <dirname>..."]
                      <filename|dirname> <filename|dirname> .....
      Checks every file and directory listed and lists any that
      don't belong to a package.  The -r is for recursive, and this
      script will then follow those directories until they end.
      --exclude must be followed by a list of dirs to ignore
        *enclosed in quotes!* (i.e. they have to be 1 argument)

Example:  ./rpm-findnonrpm -r --exclude "/usr/local" /usr

######################################################################

rpmget ver 1.1 97/02/26 Subhas Roy subhas@pobox.com Distrib.: GPL
Usage: /usr/bin/rpm-get <rpmfile> [<string-to-match>] [-l | -list] [-h | -help] [-<num>]

This lets you get one file out of an RPM, here is an example:

# rpm-get rpm-utils-1.0-1.i386.rpm README > README
# ls -l README
-rw-r--r--   1 root     root         1977 Apr 30 10:40 README
# rpm-get rpm-utils-1.0-1.i386.rpm rpm > rpm-updatedir
The file(s) matching rpm are:
1. /usr/bin/checkrpm-dir
2. /usr/bin/checkrpm-file
3. /usr/bin/rpm-updatedir
4. /usr/doc/rpm-utils-1.0-1/README
** Error:
        multiple files matching rpm found in
        /home/ftp/pub/redhat/RPMS/rpm-utils-1.0-1.i386.rpm.

                Choose one using -<num> option.

To see help text, do: rpmget -h
# rpm-get -3 rpm-utils-1.0-1.i386.rpm rpm > rpm-updatedir
# ls -l rpm-updatedir
-rwxr-xr-x   1 root     root         3512 Apr 30 10:41 rpm-updatedir*


######################################################################

/usr/bin/rpm-checkdir <filename|dirname> <filename|dirname> .... :
This program basically checks all files listed, and all *.rpm in each
directory listed on the command line.  It returns to you info relating
these RPMs to the RPMs currently installed on your system.

######################################################################

/usr/bin/rpm-checkfile <some_package.i386.rpm>:
This will return to you some info relating that one file to the stuff
installed on your system, i.e.:


# Tells us that there is no 'efax' installed at all...
rpm-checkfile efax-0.8a-2.i386.rpm 
No Version of efax installed


# Tells us that this version of wu-ftp is installed already by not
# displaying any output.
rpm-checkfile wu-ftpd-2.4.2b12-4.i386.rpm 


# Tells us about differences in versions...
rpm-checkfile pam-0.57-2.i386.rpm 
Installed Version: pam-0.53-2, Disk Version: pam-0.57-2

######################################################################

Finally, 'rpm-updatedir' will go through a certain directory and
automatically upgrade or install new packages.  It can also be made
to *NOT* automatically do either by editing the configuration values
at the top of the script.

######################################################################

Please send more utilites or send ideas for more utilities for use with
RPM!  I wan't to have a rich set of tools for people to use here!

Plus, I *want* you to email me with any and all suggestions and comments.
Send mail to any of the following addresses:

	kirk@kaybee.org
	kirk@gt.ed.net
	gt5918a@prism.gatech.edu

