Previous Section  < Day Day Up >  Next Section

Recipe 2.6. Collecting Information from RPMs That Are Not Installed

2.6.1 Problem

You want to know what dependencies a new RPM requires, what files are in it, or if a particular file is in it.

2.6.2 Solution

Add the -p switch to run queries on uninstalled RPMs.

To list the documentation files, use:

$ rpm -qpd tuxpaint-9.13-1.i386.rpm

/usr/share/doc/tuxpaint-9.13-1/AUTHORS.txt

/usr/share/doc/tuxpaint-9.13-1/CHANGES.txt

/usr/share/doc/tuxpaint-9.13-1/COPYING.txt

...

To list all the files, use:

$ rpm -qpl tuxpaint-9.13-1.i386.rpm

/etc/tuxpaint/tuxpaint.conf

/usr/bin/tuxpaint

...

To see what dependencies this package requires, use:

$ rpm -qpR tuxpaint-9.13-1.i386.rpm

/bin/sh

SDL >= 1.2.4

SDL_image

...

To see what this package provides, use:

$ rpm -qp —provides tuxpaint-9.13-1.i386.rpm

config (tuxpaint) = 9.13-1

tuxpaint-9.13-1

tuxpaint = 9.13-1

2.6.3 Discussion

You can also get all this information on individual packages, before downloading them, from RPM repositories such as http://freshrpms.net, http://rpmfind.net, and http://rpm.pbone.net.

2.6.4 See Also

    Previous Section  < Day Day Up >  Next Section