[plug] Which RPM?

David Griffiths griffith at environ.wa.gov.au
Tue Jun 13 13:02:19 WST 2000


>I ended up using a different method. Something like:
>
>  cd /cdrom/Redhat/RPMS
>  foreach f ( *.rpm ) { rpm -ql $f | gzip > /rhfiles/$f.gz }
>
>Now I can just "zgrep <pattern> /rhfiles/*" and get a list of the files
>with the package names. Works for older redhats too of course. And much
>less disk space.
>
Doesn't work for me Mike ("ql" lists installed package files).
Did you mean "rpm -qpl $f" ?
How do you get the package names printed as well with each file?

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