next up previous contents
Next: rpp-verify Up: The RPP System Previous: rpp-uninstall

rpp-query

rpp-query is used to display all kinds of information about packages (either installed or a package file), including the contents of the archive.

rpp-query [options] [name [version [type [prefix]]]]

where name, version, type and prefix are as in rpp-uninstall, except that they can match more than one package. Two important options are -c, which shows all information except the archive list, and -L which shows the archive list. If we hadn't uninstalled that findutils package we could get the list of its files with:

$ rpp-query -L findutils
/var/adm/locate
/usr/man/man5/locatedb.5
/usr/man/man1/xargs.1
/usr/man/man1/updatedb.1
/usr/man/man1/locate.1
/usr/man/man1/find.1
/usr/info/find.info-2
/usr/info/find.info-1
/usr/info/find.info
/usr/bin/xargs
/usr/bin/updatedb
/usr/bin/locate
/usr/bin/frcode
/usr/bin/find
/usr/bin/code
/usr/bin/bigram
/var/adm/rpp/verify/findutils-4.1-bin-0.vfy

That command would, in fact, list all files for all packages with the name ``findutils''. Again, to get a single package, you may have to be more specific on the command line.

Here is the -c option in use:

$ rpp-query -c findutils
PACKAGE FORMAT VERSION 1
package name  : findutils
version       : 4.1
type          : binary
size          : 245375
prefix        : /
relocatability: not relocatable
dependencies  : 
packaged by   : root@devel.redhat.com
packaged on   : Thu Jan 12 11:54:04 1995
installed by  : root@devel.redhat.com
installed by  : Thu Jan 12 11:54:48 1995
install prefix: /
description   :
This package includes find, xargs, locate, updatedb,
frcode, code, and bigram.  It includes man pages
and info files.

The locate database is stored in /var/adm/locate.

Another very important option is -f, which will tell you what package ``owns'' a particular file. The -f option can be combined with most other options. The usage is slightly different from above, but an example should suffice.

$ rpp-query -hf /usr/bin/bigram
PACKAGE FORMAT VERSION 1
package name  : findutils
version       : 4.1
type          : binary
size          : 245375
prefix        : /
relocatability: not relocatable
dependencies  : 
packaged by   : root@devel.redhat.com
packaged on   : Thu Jan 12 11:54:04 1995
installed by  : root@devel.redhat.com
installed by  : Thu Jan 12 11:54:48 1995
install prefix: /


Marc Ewing
Mon Jun 19 17:22:10 EDT 1995