Recipe 2.6. Collecting Information from RPMs That Are Not Installed

 < Day Day Up > 

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

  • rpm(8)

  • Maximum RPM (http://www.rpm.org/max-rpm/index.html)

  • FreshRPMS (http://freshrpms.net/)

  • rpmfind (http://rpmfind.net)

  • rpm.pbone (http://rpm.pbone.net)

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net