[plug] Which RPM?

David Griffiths griffith at environ.wa.gov.au
Tue Jun 13 10:20:54 WST 2000


>
>>    rpm -q --redhatprovides <needed filename>
>
>Well thats not in the man page!
>
>> I can't recall if the full pathname is required or not (expect not though).
>
>Testing ... yes, it needs the full path, so not terribly useful.
>I'll check out the rpmdb-redhat package though. Thanks Dave.
>
>
>Mike Holland  <mike at golden.wattle.id.au>

I was messing around with this a bit on the weekend and it can be made to work.
eg if you want to find what (uninstalled) red hat package xpaint belongs to
on a Red Hat 6.2 system

   rpm -qla --dbpath /usr/lib/rpmdb/i386-redhat-linux/redhat |grep /xpaint$

should respond with something like

   /etc/X11/wmconfig/xpaint
   /usr/X11R6/bin/xpaint

Then you just do the
   rpm -q --redhatprovides /usr/X11R6/bin/xpaint

(needs rpmdb-redhat package installed)

cheers,

Dave.



 ========================================================================

  David Griffiths                             griffith at environ.wa.gov.au

  Air Quality Management Branch
  Department of Environmental Protection          Phone:   61 8 9222 7151

  Westralia Square                                Fax  :   61 8 9321 5184
  141 St Georges Tce
  Perth 6000
  Western Australia
 ========================================================================





More information about the plug mailing list