[plug] RPM

David Griffiths griffith at environ.wa.gov.au
Tue Aug 8 16:17:38 WST 2000


>    i need to find a file in a packages, is there  a way to search the
>files in a list of packages to find this one file, and if  there is how do
>i do it ?

If you're using Red Hat try:




    rpm -qp --filesbypkg *.rpm |grep <your wanted file>

if you want to search through uninstalled .rpm files

(can take a while if searching through lots of rpms - you might want to
catch and compress the output for future reference)





If you're searching your installed rpms use

    rpm -qf filename

or
    rpm -qa --filesbypkg

for a complete list.


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