[plug] Which RPM?

David Griffiths griffith at environ.wa.gov.au
Tue Jun 13 14:03:36 WST 2000


>I suspect he was typing fast and forgot the p. The zgrep should provide the
>package name as it is part of the file name that the file listing goes in.
>
D'oh! <as understanding at last reaches dim brain>. Great idea!

>Another method I use, and teach on my course, to quickly find what RPM a
>file is in when you are trying to satisfy dependencies, is the following:
>
>for f in /mnt/cdrom/<distro>/RPMS/*.rpm
>do
>  if [ "`rpm -qlp $f | grep <some-file>`" != "" ]; then echo $f; fi
>done
>

I love the way different solutions come from so many different people on
this list,
and the huge advantage of being able to have your own ideas ruthlessly
scrutinised (in true open source spirit!).

It's an incredible resource. (Reminds me a bit of the kids in John Wyndham's
"The Crysalis" exchanging thoughts often without knowing the people they were
communicating with.)

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